2022-02-08 20:26:59 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Enable autostart of deferred initcalls (needed to bring Wi-Fi online)
|
|
|
|
rc-update -q add deferred-initcalls sysinit
|
|
|
|
|
|
|
|
# Explicitly specify wlan device. Without this, p2p0 will be
|
|
|
|
# selected automatically instead of wlan0, and Wi-Fi will not work.
|
2023-02-26 18:37:28 +00:00
|
|
|
if [ -f /etc/conf.d/wpa_supplicant ] && ! grep -q "i wlan0" /etc/conf.d/wpa_supplicant ; then
|
2022-02-08 20:26:59 +00:00
|
|
|
sed -i 's/-Dnl80211,wext/-Dnl80211,wext -i wlan0/' /etc/conf.d/wpa_supplicant
|
|
|
|
fi
|