--cancel-label"Exit to shell"--menu"\nConfiguration tool for the $BOARD_NAME running $DISTRO$DISTROID\n "$LISTLENGHT 70 $BOXLENGHT\
--cancel-label"Exit to shell"--menu"\nConfiguration tool for the $BOARD_NAME running $DISTRO$DISTROID\n "$LISTLENGHT 70 $BOXLENGHT\
"${LIST[@]}" 2>&1 1>&3)
"${LIST[@]}" 2>&1 1>&3)
exit_status=$?
exit_status=$?
...
@@ -45,9 +46,12 @@ while true; do
...
@@ -45,9 +46,12 @@ while true; do
"Networking")
"Networking")
submenu_networking
submenu_networking
;;
;;
"Settings")
"System")
submenu_settings
submenu_settings
;;
;;
"Armbian")
submenu_hardware
;;
"About")
"About")
show_box "Info""This tool provides a straightforward way of doing initial configuration of the ${BOARD_NAME}. Although it can be run at any time, some of the options may have difficulties if you have heavily customised your installation.\n\nSources: https://github.com/armbian/config\n\nSupport: https://forum.armbian.com""15"
show_box "Info""This tool provides a straightforward way of doing initial configuration of the ${BOARD_NAME}. Although it can be run at any time, some of the options may have difficulties if you have heavily customised your installation.\n\nSources: https://github.com/armbian/config\n\nSupport: https://forum.armbian.com""15"
if[[-n$(service hostapd status | grep-w active | grep-w running)]];then
if[[-n$(service hostapd status | grep-w active | grep-w running)]];then
dialog --title"Hostapd service is running"--backtitle"$BACKTITLE"--help-button--help-label"Cancel"--yes-label"Stop"\
if[[-n$HOSTAPDBRIDGE]];then
--no-label"Edit"--yesno"\nStop: stop and disable\n\nEdit: change basic parameters: SSID, password and channel" 9 70
dialog --title" Hostapd service is running "--colors--backtitle"$BACKTITLE"--help-button--help-label"Cancel"--yes-label"Stop and reboot"--no-label"Edit"--yesno"\n\Z1Stop:\Z0 stop and reboot\n\n\Z1Edit:\Z0 change basic parameters: SSID, password and channel" 9 70
else
dialog --title" Hostapd service is running "--colors--backtitle"$BACKTITLE"--help-button--help-label"Cancel"--yes-label"Stop"--no-label"Edit"--yesno"\n\Z1Stop:\Z0 stop providing Access Point\n\n\Z1Edit:\Z0 change basic parameters: SSID, password and channel" 9 70
dialog --title"Choose Access Point mode for $WIRELESS_ADAPTER"--backtitle"$BACKTITLE"--help-button\
dialog --title" Choose Access Point mode for $WIRELESS_ADAPTER "--colors--backtitle"$BACKTITLE"--no-label"Bridge"\
--help-label"Manual"--yes-label"Bridge"--no-label"NAT"--yesno"\nBridge: wireless clients will use your routers DHCP \
--yes-label"NAT"--yesno"\n\Z1NAT:\Z0 with own DHCP server, out of your primary network\n\n\Z1Bridge:\Z0 wireless clients will use your routers DHCP server" 9 70
server\n\nNAT: with own DHCP server, out of your primary network\n\nManual: edit configuration manually" 11 70
response=$?
response=$?
DEFAULT_ADAPTER=$(ip -4 route ls | grep default | grep-Po'(?<=dev )(\S+)')
NETWORK_CONF="/etc/network/interfaces"
dialog --title"Network configuration"--backtitle"$BACKTITLE"--yesno"\nStart with clean config?" 7 29
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 "
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 "
# 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 --backtitle"$BACKTITLE"--title" System settings "--clear\