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

View File

@@ -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)