From e7d56084d027cbb1c0efe4efce7fcef542f3d9b0 Mon Sep 17 00:00:00 2001 From: Victor Caldas Date: Tue, 11 Jul 2023 12:05:15 +0200 Subject: [PATCH] Update openwrt.sh --- vm/openwrt.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vm/openwrt.sh b/vm/openwrt.sh index fd8d7957..b3da371d 100644 --- a/vm/openwrt.sh +++ b/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