mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
Update debian-v4.sh
This commit is contained in:
parent
e4a486f8bf
commit
2c89c00470
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue