pmaports/main/wcnss-wlan/wcnss-wlan.initd
Clayton Craft aaaf815dc4
main/wcnss-wlan: change openrc service to start before "wlan" (MR 4564)
[ci:skip-build] # already built in CI
2023-12-09 21:30:35 +00:00

19 lines
331 B
Text

#!/sbin/openrc-run
description="Initialize wcnss wlan driver"
depend()
{
need udev
before wlan
}
start()
{
ebegin "Enabling wlan driver"
echo 1 > /dev/wcnss_wlan 2>/dev/null
[ x$wcnssdelay != x ] && sleep $wcnssdelay
if [ -e /sys/module/wlan/parameters/fwpath ]; then
echo sta > /sys/module/wlan/parameters/fwpath
fi
}