show_box "Info""This tool provides a straightforward way of configuring the \Z2${BOARD_NAME}\Z0. \n\nAlthough it can be run at any time, some of the options may have difficulties if you alter system settings manually.\n\n\Z1Documentation:\Z0 https://docs.armbian.com\n\n\Z1Support:\Z0 https://forum.armbian.com\n\n\Z1Sources:\Z0 https://github.com/armbian/config""18"
show_box "Info""This tool provides a straightforward way of configuring the \Z2${BOARD_NAME}\Z0. \
\n\nAlthough it can be run at any time, some of the options may have difficulties if you alter system settings manually.\n\
dialog --title" Display output type "--colors--help-button--help-label"Back"--no-label"DVI"--yes-label"HDMI"--backtitle"$BACKTITLE"--yesno"\nIn case you use an HDMI-to-DVI converter choose DVI!" 7 57
dialog --title" Display output type "--colors--help-button--help-label"Back"--no-label"DVI"--yes-label"HDMI"\
--backtitle"$BACKTITLE"--yesno"\nIn case you use an HDMI-to-DVI converter choose DVI!" 7 57
"\nSetting new screen mode.\n\nExecuting \Z1$display_cmd\Z0 and reboot? " 9 56
if[[$?= 0 ]];then
if[[$?= 0 ]];then
eval$display_cmd> /dev/null
eval$display_cmd> /dev/null
reboot
reboot
...
@@ -130,7 +138,9 @@ function jobs ()
...
@@ -130,7 +138,9 @@ function jobs ()
"IP")
"IP")
# select default interfaces if there is more than one
# select default interfaces if there is more than one
select_default_interface
select_default_interface
dialog --title" IP address assignment "--colors--backtitle"$BACKTITLE"--help-button--help-label"Cancel"--yes-label"DHCP"--no-label"Static"--yesno"\n\Z1DHCP:\Z0 automatic IP asignment by your router or DHCP server\n\n\Z1Static:\Z0 manually fixed IP address" 9 70
dialog --title" IP address assignment "--colors--backtitle"$BACKTITLE"--help-button--help-label"Cancel"\
--yes-label"DHCP"--no-label"Static"--yesno\
"\n\Z1DHCP:\Z0 automatic IP asignment by your router or DHCP server\n\n\Z1Static:\Z0 manually fixed IP address" 9 70
if[[-n$(service hostapd status | grep-w active | grep-w running)]];then
if[[-n$(service hostapd status | grep-w active | grep-w running)]];then
if[[-n$HOSTAPDBRIDGE]];then
if[[-n$HOSTAPDBRIDGE]];then
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
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
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" Hostapd service is running "--colors--backtitle"$BACKTITLE"--help-button\
# dialog --title " Choose Access Point mode for $WIRELESS_ADAPTER " --colors --backtitle "$BACKTITLE" --no-label "Bridge" --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
# let's remove bridge out for this simple configurator
#
# dialog --title " Choose Access Point mode for $WIRELESS_ADAPTER " --colors --backtitle "$BACKTITLE" --no-label "Bridge" \
# --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
# response=$?
# response=$?
# let's remove bridge for this simple configurator
#
# let's remove bridge out for this simple configurator
response=0
response=0
# select default interfaces if there is more than one
# select default interfaces if there is more than one
| wc-l)-gt 1 ]]&& LIST+=("Switch""Switch to alternative kernels")
| wc-l)-gt 1 ]]&& LIST+=("Switch""Switch to alternative kernels")
# count number of menu items to adjust window sizee
# 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))"
LISTLENGHT="$((6+${#LIST[@]}/2))"
fi
BOXLENGHT=${#LIST[@]}
DIALOG_CANCEL=1
DIALOG_ESC=255
exec 3>&1
exec 3>&1
selection=$(dialog --backtitle"$BACKTITLE"--title" Armbian specific settings "--clear\
selection=$(dialog --backtitle"$BACKTITLE"--title" Armbian specific settings "--clear\