pmaports/device/testing/device-samsung-a6lte/etc-init.d-wlan0-up
Sergey Lisov b11e24701a
device-samsung-a6lte: hack around a WiFi bug in the vendor kernel (MR 3823)
If the wlan0 interface is rfkilled down on boot, WiFi won't work until reboot.
It seems that quickly ifconfig'ing wlan0 up and down in sysinit is enough to work around the bug.

[ci:skip-build] already built successfully in CI
2023-02-10 14:09:03 -08:00

8 lines
133 B
Text

#!/sbin/openrc-run
description="Hack to fix wlan0 EINVAL if rfkilled on boot"
start () {
ifconfig wlan0 up
ifconfig wlan0 down
}