[["$reboot_module"==true]]&& dialog --backtitle"$BACKTITLE"--title" Warning "--msgbox"\nReboot is required for this adapter to switch to STA mode" 7 62 && reboot
nmtui-connect
# disable AP mode on certain adapters
wlan_exceptions "off"
[["$reboot_module"==true]]&& dialog --backtitle"$BACKTITLE"--title" Warning "--msgbox"\nReboot is required for this adapter to switch to STA mode" 7 62 && reboot
nmtui-connect
;;
# Connect to 3G/4G network
#
"LTE")
if! is_package_manager_running;then
if! is_package_manager_running;then
if[[$LTE_MODEM==*online*]];then
dialog --title" LTE modem is connected "--colors--backtitle"$BACKTITLE"--yes-label"Back"--no-label"Disconnect"--yesno"\n\Z1Disconnect:\Z0 kill mobile connection\n\n" 7 42
[[$?= 1 ]]&& lte "$LTE_MODEM_ID""off"
...
...
@@ -385,28 +385,28 @@ unset selection
dialog --title" LTE modem is disconnected "--colors--backtitle"$BACKTITLE"--yes-label"Back"--no-label"Connect"--yesno"\n\Z1Connect:\Z0 dial mobile connection\n\n" 7 42
[[$?= 1 ]]&& lte "$LTE_MODEM_ID""on"
fi
fi
fi
;;
# Connect to wireless access point
#
"Clear")
# remove managed interfaces
systemctl daemon-reload
nmcli con delete $(nmcli --fields NAME,UUID,TYPE con | grep wifi | awk'{print $2}')
echo"ip route add $VPNSERVERIP via $IP dev $ADAPTER"
echo"ip route del default"
echo"ip route add default via $GW dev vpn_se"
read
dialog --title"VPN client is connected to $VPNSERVERIP"--colors--backtitle"$BACKTITLE"--help-button--help-label"Cancel"--yes-label"Stop"--no-label" Import "--yesno"\n\Z1Stop: \Z0 stop\n\n\Z1Import:\Z0 import new config from /etc/armbian.vpn" 9 70
echo"ip route add $VPNSERVERIP via $IP dev $ADAPTER"
echo"ip route del default"
echo"ip route add default via $GW dev vpn_se"
read
dialog --title"VPN client is connected to $VPNSERVERIP"--colors--backtitle"$BACKTITLE"--help-button--help-label"Cancel"--yes-label"Stop"--no-label" Import "--yesno"\n\Z1Stop: \Z0 stop\n\n\Z1Import:\Z0 import new config from /etc/armbian.vpn" 9 70
dialog --title"VPN client is disconnected"--colors--backtitle"$BACKTITLE"--help-button--help-label"Cancel"--yes-label"Connect"--no-label" Import "--yesno"\n\Z1Connect:\Z0 Connect with your VPN server \n\n\Z1Import:\Z0 import new config from /etc/armbian.vpn" 9 70
response=$?
if[[$response= 0 ]];then
${VPNDIR}vpnclient start >/dev/null 2>&1
# raise devices
raise_dev
get_numbers
echo"ip route add $VPNSERVERIP via $IP dev $ADAPTER"
echo"ip route del default"
echo"ip route add default via $GW dev vpn_se"
read
dialog --title"VPN client is disconnected"--colors--backtitle"$BACKTITLE"--help-button--help-label"Cancel"--yes-label"Connect"--no-label" Import "--yesno"\n\Z1Connect:\Z0 Connect with your VPN server \n\n\Z1Import:\Z0 import new config from /etc/armbian.vpn" 9 70
response=$?
if[[$response= 0 ]];then
${VPNDIR}vpnclient start >/dev/null 2>&1
# raise devices
raise_dev
get_numbers
echo"ip route add $VPNSERVERIP via $IP dev $ADAPTER"
dialog --backtitle"$BACKTITLE"--title"Info"--colors--msgbox"\nYour default shell was switched to: \Z1ZSH\Z0\n\nPlease logout & login from this session!" 9 47
dialog --backtitle"$BACKTITLE"--title"Info"--colors--msgbox"\nYour default shell was switched to: \Z1ZSH\Z0\n\nPlease logout & login from this session!" 9 47
dialog --colors --backtitle "$BACKTITLE" --no-collapse --title " Auto updating SSL certificate " --clear --yesno "\nDo you want to secure ISPConfig control panel and all services with free Let's Encrypt SSL certificate?" 8 80
if [[ $? == 0 ]]; then
dialog --colors --backtitle "$BACKTITLE" --no-collapse --title " Instructions " --clear --msgbox "\n1. Access admin panel with your browser: \Z1https://$serverIP:8080\Z0\n\nUsername: \Z1admin\Z0\nPassword: \Z11234\Z0 \n\n\n2. Go to Sites > Website > \Z1Add new website\Z0\n\nDomain: \Z1$(hostname -f)\Z0\nAuto-Subdomain: \Z1None\Z0\nSSL: \Z1enable\Z0\nLet's Encrypt SSL: \Z1enable\Z0\n\n\n3. Go to Tools > \Z1Password and language\Z0\n\nChange ISPConfig control panel password.\n\nSave and Logout. \n\n\n4. Wait until SSL is not working here: \Z1https://$(hostname -f)\Z0 \n\nIt can take up to a few minutes.\n\n\n5. Proceed with install (\Z1Press ENTER\Z0):" 33 80
dialog --colors --backtitle "$BACKTITLE" --no-collapse --title " Instructions " --clear --msgbox "\n1. Access admin panel with your browser: \Z1https://$serverIP:8080\Z0\n\nUsername: \Z1admin\Z0\nPassword: \Z11234\Z0 \n\n\n2. Go to Sites > Website > \Z1Add new website\Z0\n\nDomain: \Z1$(hostname -f)\Z0\nAuto-Subdomain: \Z1None\Z0\nSSL: \Z1enable\Z0\nLet's Encrypt SSL: \Z1enable\Z0\n\n\n3. Go to Tools > \Z1Password and language\Z0\n\nChange ISPConfig control panel password.\n\nSave and Logout. \n\n\n4. Wait until SSL is not working here: \Z1https://$(hostname -f)\Z0 \n\nIt can take up to a few minutes.\n\n\n5. Proceed with install (\Z1Press ENTER\Z0):" 33 80