--yesno"\nWireless connection is in use.\n\nDo you want to disconnect?" 9 57
[[$?= 0 ]]&& nmcli connection down uuid $CURRENT_UUID
[[$?= 0 ]]&& nmcli connection down uuid $CURRENT_UUID 2> /dev/null
else
# check if user agree to enter this area
beta_disclaimer "Wireless networking in Linux is problematic. Our tools make it easy for some cases but can't enable AP on every random WiFi chip. If this tool fail, check manual methods."
if[[-n$ACKNOWLEDGEMENT]];then
# change special adapters to AP mode
wlan_exceptions "on"
# check for WLAN interfaces
...
...
@@ -303,7 +300,6 @@ function jobs ()
mv$TEMP_CONF /etc/network/interfaces
reboot
fi
fi
fi
;;
...
...
@@ -351,14 +347,17 @@ function jobs ()
# Freeze and unfreeze kernel and board support packages
local disclaimer="\nNote: wireless networking in Linux is problematic. Our tools make it easy for some cases but can't enable AP on every random WiFi chip. If this tool fail, you are on your own.\n "
else
LISTLENGHT="$((6+${#LIST[@]}/2))"
disclaimer=""
if[[-n$WIFICONNECTED]];then
LISTLENGHT=$((LISTLENGHT+1))
local connected="Connected to: $WIFICONNECTED\n"
local disclaimer=$connected
fi
# display warning only we have wifi
#if [[ " ${LIST[*]} " == *" Hotspot "* ]]; then
disclaimer=$disclaimer"\nNote: wireless networking in Linux is problematic. Our tools make it easy for some cases but can't enable AP on every random WiFi chip. If this tool fail, you are on your own.\n "