Update openwrt.sh

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

@ -292,8 +292,8 @@ function advanced_settings() {
fi 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 vmbr0 --title "LAN IP ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3); then
if [ -z $LAN_BRG ]; then if [ -z $LAN_IP_ADDR ]; then
LAN_BRG="vmbr0" LAN_IP_ADDR="192.168.1.1"
fi fi
echo -e "${DGN}Using LAN IP ADDRESS: ${BGN}$LAN_IP_ADDR${CL}" echo -e "${DGN}Using LAN IP ADDRESS: ${BGN}$LAN_IP_ADDR${CL}"
else else
@ -301,8 +301,8 @@ function advanced_settings() {
fi 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 vmbr0 --title "LAN NETMASK" --cancel-button Exit-Script 3>&1 1>&2 2>&3); then
if [ -z $LAN_BRG ]; then if [ -z $LAN_NETMASK ]; then
LAN_BRG="vmbr0" LAN_NETMASK="255.255.255.0"
fi fi
echo -e "${DGN}Using LAN NETMASK: ${BGN}$LAN_NETMASK${CL}" echo -e "${DGN}Using LAN NETMASK: ${BGN}$LAN_NETMASK${CL}"
else else

Loading…
Cancel
Save