mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
parent
28e198f567
commit
a84c54d3cc
66 changed files with 924 additions and 66 deletions
|
@ -117,6 +117,8 @@ function default_settings() {
|
|||
NET=dhcp
|
||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||
GATE=""
|
||||
echo -e "${DGN}Using Interface MTU Size: ${BGN}Default${CL}"
|
||||
MTU=""
|
||||
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||
SD=""
|
||||
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||
|
@ -226,6 +228,17 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||
fi
|
||||
fi
|
||||
MTU1=$(whiptail --inputbox "Set Interface MTU Size (leave blank for default)" 8 58 --title "MTU SIZE" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||
exitstatus=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $MTU1 ]; then
|
||||
MTU1="Default" MTU=""
|
||||
echo -e "${DGN}Using Interface MTU Size: ${BGN}$MTU1${CL}"
|
||||
else
|
||||
MTU=",mtu=$MTU1"
|
||||
echo -e "${DGN}Using Interface MTU Size: ${BGN}$MTU1${CL}"
|
||||
fi
|
||||
fi
|
||||
SD=$(whiptail --inputbox "Set a DNS Search Domain (leave blank for HOST)" 8 58 --title "DNS Search Domain" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||
exitstatus=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
|
@ -341,7 +354,7 @@ export PCT_OPTIONS="
|
|||
-hostname $HN
|
||||
$SD
|
||||
$NS
|
||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN$MTU
|
||||
-onboot 1
|
||||
-cores $CORE_COUNT
|
||||
-memory $RAM_SIZE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue