dialog --title" Reverting configuration "--backtitle"$BACKTITLE"--no-collapse--colors--infobox"\nWireless 802.11ac \Z1(433Mbps x n @ 5Ghz)\Z0 is not supported!" 5 60
LIST+=("Locales""Reconfigure language \Z5($(locale | grep LANGUAGE | cut-d=-f2 | cut-d_-f1))\Z0 and character set")
BOXLENGHT=${#LIST[@]}
LIST+=("Hostname""Change your hostname \Z5($(cat /etc/hostname))\Z0")
LIST+=("SSHd""Reconfigure SSH daemon")
LIST+=("Firmware""Upgrade board firmware")
# display warning only we have wifi
# detect desktop
if[[" ${LIST[*]} "==*" Hotspot "*]];then
DISPLAY_MANAGER="";DESKTOP_INSTALLED=""
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 "
disclaimer=$disclaimer"\n\Z1Note\Zn: 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))"
#fi
DIALOG_CANCEL=1
disclaimer=$disclaimer"\n\Z1Note\Zn: wireless networking in Linux is problematic.\
DIALOG_ESC=255
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 "
# count number of menu items to adjust window sizee
LISTLENGHT="$((11+${#LIST[@]}/2))"
BOXLENGHT=${#LIST[@]}
# display warning only we have wifi
if[[" ${LIST[*]} "==*" Hotspot "*]];then
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))"
fi
DIALOG_CANCEL=1
DIALOG_ESC=255
exec 3>&1
selection=$(dialog --colors--backtitle"$BACKTITLE"--title" System settings "--clear\