Set Wi-Fi country while connecting to SSID

This commit is contained in:
Serge Schneider 2018-04-06 13:44:40 +01:00
parent 0c055b6ab7
commit efed74ae9c
2 changed files with 10 additions and 0 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
raspi-config (20180406) stretch; urgency=medium
* Set Wi-Fi country while connecting to SSID
-- Serge Schneider <serge@raspberrypi.org> Fri, 06 Apr 2018 13:40:21 +0100
raspi-config (20180228) stretch; urgency=medium raspi-config (20180228) stretch; urgency=medium
* Setting Wi-Fi country no longer requires a reboot * Setting Wi-Fi country no longer requires a reboot

View File

@ -1444,6 +1444,10 @@ do_wifi_ssid_passphrase() {
return 1 return 1
fi fi
if [ "$INTERACTIVE" = True ] && [ -z "$(get_wifi_country)" ]; then
do_wifi_country
fi
SSID="$1" SSID="$1"
while [ -z "$SSID" ] && [ "$INTERACTIVE" = True ]; do while [ -z "$SSID" ] && [ "$INTERACTIVE" = True ]; do
SSID=$(whiptail --inputbox "Please enter SSID" 20 60 3>&1 1>&2 2>&3) SSID=$(whiptail --inputbox "Please enter SSID" 20 60 3>&1 1>&2 2>&3)