Update debian-v4.sh

This commit is contained in:
tteckster 2022-12-03 12:44:34 -05:00 committed by GitHub
parent e4a486f8bf
commit 2c89c00470
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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