pmaports/main/wcnss-wlan/wcnss-wlan.initd
pedro b0a8448716
main/wcnss-wlan: allow to insert delay (!762)
Make it possible to sleep before enabling the wlan driver. This is
needed to make it work properly with lg-mako.

Related: #46
2019-11-24 20:49:57 +01:00

19 lines
341 B
Text

#!/sbin/openrc-run
description="Initialize wcnss wlan driver"
depend()
{
need udev
before wpa_supplicant
}
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
}