2021-06-07 11:30:39 +00:00
|
|
|
#!/sbin/openrc-run
|
|
|
|
|
|
|
|
description="Initialize hi1101 wlan driver"
|
|
|
|
|
|
|
|
depend()
|
|
|
|
{
|
|
|
|
need udev
|
2023-12-12 07:29:50 +00:00
|
|
|
before wlan
|
2021-06-07 11:30:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
start()
|
|
|
|
{
|
|
|
|
ebegin "Enabling wlan driver"
|
|
|
|
echo 1 > /sys/devices/hi110x_ps/bfg_lowpower_enable
|
|
|
|
echo 12 > /sys/devices/hi110x_power/powerpin_state
|
|
|
|
echo 1 > /proc/wifi_enable/wifi_start
|
|
|
|
echo 1 > /proc/oam_enable/oam_start
|
2023-12-12 07:29:50 +00:00
|
|
|
}
|