From 01936b3311d84b98a8e19ed7ece31b4a58bb228b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 5 Jan 2017 15:07:46 +0000 Subject: [PATCH] Wifi settings description --- src/freedombone-utils-wifi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/freedombone-utils-wifi b/src/freedombone-utils-wifi index 44973925..f94b3a52 100755 --- a/src/freedombone-utils-wifi +++ b/src/freedombone-utils-wifi @@ -487,9 +487,13 @@ function create_networks_interactive { do data=$(tempfile 2>/dev/null) trap "rm -f $data" 0 1 2 5 15 + wifistr=$"\nTo use this system via wifi (eg. USB dongle) enter the details below, otherwise just select Ok:" + if [ -f /root/.wifi-only ]; then + wifistr=$"\nEnter your wifi login details below." + fi dialog --backtitle $"Freedombone Configuration" \ --title $"Wifi Settings ${wifi_ctr}" \ - --form $"\nTo use this system via wifi (eg. USB dongle) enter the details below, otherwise just select Ok:" 13 65 4 \ + --form "$wifistr" 13 65 4 \ $"SSID (can be 'any'):" 1 1 "$WIFI_SSID" 1 24 30 30 \ $"Type (open/wpa2-psk):" 2 1 "$WIFI_TYPE" 2 24 10 10 \ $"Passphrase:" 3 1 "$WIFI_PASSPHRASE" 3 24 50 50 \