From 2c89c0047064e60918312971086382994e12a77c Mon Sep 17 00:00:00 2001 From: tteckster Date: Sat, 3 Dec 2022 12:44:34 -0500 Subject: [PATCH] Update debian-v4.sh --- ct/debian-v4.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ct/debian-v4.sh b/ct/debian-v4.sh index f3ddea2f..64625a86 100644 --- a/ct/debian-v4.sh +++ b/ct/debian-v4.sh @@ -88,6 +88,7 @@ function default_settings() { echo -e "${DGN}Using Static IP Address: ${BGN}dhcp${CL}" NET=dhcp echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}" + NS="" GATE="" echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}" MAC="" @@ -184,10 +185,11 @@ function advanced_settings() { exitstatus=$? if [ $exitstatus = 0 ]; then if [ -z $GATE1 ]; then + NS="" GATE1="Default" GATE="" echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}" else - NS=$GATE1 + NS="-nameserver=$GATE1" GATE=",gw=$GATE1" echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}" fi @@ -258,7 +260,7 @@ export PCT_DISK_SIZE=$DISK_SIZE export PCT_OPTIONS=" -features $FEATURES -hostname $HN - -nameserver=$NS + $NS -net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN -onboot 1 -cores $CORE_COUNT