configure unprotected wifi when WPA_PASSWORD is unset (#357)

This commit is contained in:
Christian Decker
2019-12-05 16:08:04 +01:00
committed by XECDesign
parent 8bdbbfb099
commit 18c3cebe94
2 changed files with 9 additions and 1 deletions

View File

@@ -14,6 +14,14 @@ if [ -v WPA_ESSID ] && [ -v WPA_PASSWORD ]; then
on_chroot <<EOF
wpa_passphrase "${WPA_ESSID}" "${WPA_PASSWORD}" >> "/etc/wpa_supplicant/wpa_supplicant.conf"
EOF
elif [ -v WPA_ESSID ]; then
cat >> "${ROOTFS_DIR}/etc/wpa_supplicant/wpa_supplicant.conf" << EOL
network={
ssid="${WPA_ESSID}"
key_mgmt=NONE
}
EOL
fi
# Disable wifi on 5GHz models