Update openwrt.sh

pull/1605/head
Victor Caldas 2 years ago committed by GitHub
parent d87649d066
commit e7d56084d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      vm/openwrt.sh

@ -291,7 +291,7 @@ function advanced_settings() {
exit-script
fi
if LAN_IP_ADDR=$(whiptail --inputbox "Set a router IP" 8 58 vmbr0 --title "LAN IP ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3); then
if LAN_IP_ADDR=$(whiptail --inputbox "Set a router IP" 8 58 192.168.1.1 --title "LAN IP ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3); then
if [ -z $LAN_IP_ADDR ]; then
LAN_IP_ADDR="192.168.1.1"
fi
@ -300,7 +300,7 @@ function advanced_settings() {
exit-script
fi
if LAN_NETMASK=$(whiptail --inputbox "Set a router netmmask" 8 58 vmbr0 --title "LAN NETMASK" --cancel-button Exit-Script 3>&1 1>&2 2>&3); then
if LAN_NETMASK=$(whiptail --inputbox "Set a router netmmask" 8 58 255.255.255.0 --title "LAN NETMASK" --cancel-button Exit-Script 3>&1 1>&2 2>&3); then
if [ -z $LAN_NETMASK ]; then
LAN_NETMASK="255.255.255.0"
fi

Loading…
Cancel
Save