Use raspi-config to set WPA_COUNTRY

This commit is contained in:
Serge Schneider 2022-08-19 12:35:48 +01:00
parent db3cd433fb
commit 68ddb44960

View File

@ -8,7 +8,9 @@ on_chroot << EOF
EOF
if [ -v WPA_COUNTRY ]; then
echo "country=${WPA_COUNTRY}" >> "${ROOTFS_DIR}/etc/wpa_supplicant/wpa_supplicant.conf"
on_chroot <<- EOF
SUDO_USER="${FIRST_USER_NAME}" raspi-config nonint do_wifi_country "${WPA_COUNTRY}"
EOF
fi
if [ -v WPA_ESSID ] && [ -v WPA_PASSWORD ]; then