From efed74ae9cc82e98b28dccf18866406db123d503 Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Fri, 6 Apr 2018 13:44:40 +0100 Subject: [PATCH] Set Wi-Fi country while connecting to SSID --- debian/changelog | 6 ++++++ raspi-config | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/debian/changelog b/debian/changelog index e3577a4..e18c4bf 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +raspi-config (20180406) stretch; urgency=medium + + * Set Wi-Fi country while connecting to SSID + + -- Serge Schneider Fri, 06 Apr 2018 13:40:21 +0100 + raspi-config (20180228) stretch; urgency=medium * Setting Wi-Fi country no longer requires a reboot diff --git a/raspi-config b/raspi-config index 4f8c2a7..d625c25 100755 --- a/raspi-config +++ b/raspi-config @@ -1444,6 +1444,10 @@ do_wifi_ssid_passphrase() { return 1 fi + if [ "$INTERACTIVE" = True ] && [ -z "$(get_wifi_country)" ]; then + do_wifi_country + fi + SSID="$1" while [ -z "$SSID" ] && [ "$INTERACTIVE" = True ]; do SSID=$(whiptail --inputbox "Please enter SSID" 20 60 3>&1 1>&2 2>&3)