From d87649d066f1fd8b8c6d52a747f7c7b0f722055d Mon Sep 17 00:00:00 2001 From: Victor Caldas Date: Tue, 11 Jul 2023 12:04:12 +0200 Subject: [PATCH] Update openwrt.sh --- vm/openwrt.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vm/openwrt.sh b/vm/openwrt.sh index ca229213..fd8d7957 100644 --- a/vm/openwrt.sh +++ b/vm/openwrt.sh @@ -292,8 +292,8 @@ function advanced_settings() { 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 [ -z $LAN_BRG ]; then - LAN_BRG="vmbr0" + if [ -z $LAN_IP_ADDR ]; then + LAN_IP_ADDR="192.168.1.1" fi echo -e "${DGN}Using LAN IP ADDRESS: ${BGN}$LAN_IP_ADDR${CL}" else @@ -301,8 +301,8 @@ function advanced_settings() { 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 [ -z $LAN_BRG ]; then - LAN_BRG="vmbr0" + if [ -z $LAN_NETMASK ]; then + LAN_NETMASK="255.255.255.0" fi echo -e "${DGN}Using LAN NETMASK: ${BGN}$LAN_NETMASK${CL}" else