Changing wifi doesn't cause wired disconnection

This commit is contained in:
Bob Mottram 2016-04-21 15:29:32 +01:00
parent 2295f21762
commit 88c97978d9
1 changed files with 1 additions and 8 deletions

View File

@ -1728,14 +1728,7 @@ function wifi_settings {
if [[ $PREV_WIFI_INTERFACE != $NEW_WIFI_INTERFACE || $PREV_WIFI_SSID != $NEW_WIFI_SSID || $PREV_WIFI_TYPE != $NEW_WIFI_TYPE || $PREV_WIFI_PASSPHRASE != $NEW_WIFI_PASSPHRASE ]]; then
dialog --title $"Wifi Settings" \
--backtitle $"Freedombone Control Panel" \
--defaultno \
--yesno $"\nWifi settings changed. Restart networking (you will be disconnected)?" 10 60
sel=$?
case $sel in
1) return;;
255) return;;
esac
--msgbox $"Wifi settings were changed" 6 40
WIFI_INTERFACE=$NEW_WIFI_INTERFACE
WIFI_SSID=$NEW_WIFI_SSID