2017-10-15 16:32:12 +00:00
|
|
|
#!/sbin/openrc-run
|
|
|
|
|
|
|
|
description="Initialize wcnss wlan driver"
|
|
|
|
|
|
|
|
depend()
|
|
|
|
{
|
|
|
|
need udev
|
2023-12-05 06:48:02 +00:00
|
|
|
before wlan
|
2017-10-15 16:32:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
start()
|
|
|
|
{
|
|
|
|
ebegin "Enabling wlan driver"
|
|
|
|
echo 1 > /dev/wcnss_wlan 2>/dev/null
|
2019-11-19 18:43:12 +00:00
|
|
|
[ x$wcnssdelay != x ] && sleep $wcnssdelay
|
2017-10-17 16:25:38 +00:00
|
|
|
if [ -e /sys/module/wlan/parameters/fwpath ]; then
|
|
|
|
echo sta > /sys/module/wlan/parameters/fwpath
|
|
|
|
fi
|
2017-10-15 16:32:12 +00:00
|
|
|
}
|