--yesno"\nWireless connection is in use.\n\nDo you want to disconnect?" 9 57
--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
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
# change special adapters to AP mode
wlan_exceptions "on"
wlan_exceptions "on"
# check for WLAN interfaces
# check for WLAN interfaces
...
@@ -304,7 +301,6 @@ function jobs ()
...
@@ -304,7 +301,6 @@ function jobs ()
reboot
reboot
fi
fi
fi
fi
fi
;;
;;
...
@@ -351,14 +347,17 @@ function jobs ()
...
@@ -351,14 +347,17 @@ function jobs ()
# Freeze and unfreeze kernel and board support packages
# 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 "
LISTLENGHT=$((LISTLENGHT+1))
else
local connected="Connected to: $WIFICONNECTED\n"
LISTLENGHT="$((6+${#LIST[@]}/2))"
local disclaimer=$connected
fi
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 "