mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
bootconfig: supported hidden ssids
This commit is contained in:
parent
2bebbd9319
commit
286c3a8caa
@ -202,6 +202,9 @@ if [ -n "$WIFI_ESSID" ]; then
|
||||
fi
|
||||
wpa_passphrase "$WIFI_ESSID" "$WIFI_PASSWD" > "/etc/wpa_supplicant/wpa_supplicant-$WIFI_IFACE.conf"
|
||||
chmod 640 "/etc/wpa_supplicant/wpa_supplicant-$WIFI_IFACE.conf"
|
||||
if [ -n "$WIFI_HIDDEN" ]; then
|
||||
sed -i -e 's/^}/\tscan_ssid=1\n}/g' "/etc/wpa_supplicant/wpa_supplicant-$WIFI_IFACE.conf"
|
||||
fi
|
||||
systemctl enable "wpa_supplicant@$WIFI_IFACE.service" || true
|
||||
touch /boot/pikvm-reboot.txt
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user