mirror of https://github.com/tteck/Proxmox.git
options to set DNS (#803)
This commit is contained in:
parent
9742c35d6a
commit
102a2061b4
|
@ -90,6 +90,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -192,6 +196,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -258,6 +286,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -90,6 +90,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -188,6 +192,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -254,6 +282,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -89,6 +89,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -191,6 +195,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -257,6 +285,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -90,6 +90,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -192,6 +196,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -258,6 +286,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -90,6 +90,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -192,6 +196,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -258,6 +286,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -90,6 +90,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -192,6 +196,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -258,6 +286,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -90,6 +90,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -192,6 +196,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -258,6 +286,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -89,6 +89,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -191,6 +195,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -257,6 +285,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -90,6 +90,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -192,6 +196,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -258,6 +286,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -89,6 +89,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -191,6 +195,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -257,6 +285,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -91,6 +91,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -201,6 +205,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -267,6 +295,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -90,6 +90,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -192,6 +196,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -258,6 +286,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -89,6 +89,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -191,6 +195,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -257,6 +285,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -89,6 +89,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -191,6 +195,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -257,6 +285,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -89,6 +89,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -191,6 +195,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -257,6 +285,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -89,6 +89,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -191,6 +195,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -257,6 +285,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -90,6 +90,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -192,6 +196,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -258,6 +286,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -89,6 +89,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -191,6 +195,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -257,6 +285,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -89,6 +89,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -191,6 +195,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -257,6 +285,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -90,6 +90,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -192,6 +196,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -258,6 +286,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -89,6 +89,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -191,6 +195,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -257,6 +285,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -89,6 +89,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -191,6 +195,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -257,6 +285,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -91,6 +91,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -201,6 +205,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -267,6 +295,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -90,6 +90,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -192,6 +196,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -258,6 +286,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -90,6 +90,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -192,6 +196,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -258,6 +286,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -89,6 +89,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -191,6 +195,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -257,6 +285,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -89,6 +89,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -191,6 +195,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -257,6 +285,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -89,6 +89,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -191,6 +195,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -257,6 +285,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -226,6 +226,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
30
ct/n8n-v4.sh
30
ct/n8n-v4.sh
|
@ -90,6 +90,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -192,6 +196,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -258,6 +286,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -89,6 +89,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -191,6 +195,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -257,6 +285,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -90,6 +90,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -192,6 +196,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -258,6 +286,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -90,6 +90,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -192,6 +196,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -258,6 +286,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -89,6 +89,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -191,6 +195,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -257,6 +285,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -89,6 +89,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -191,6 +195,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -257,6 +285,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -90,6 +90,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -200,6 +204,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -266,6 +294,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
30
ct/omv-v4.sh
30
ct/omv-v4.sh
|
@ -90,6 +90,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -192,6 +196,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -258,6 +286,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -90,6 +90,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -192,6 +196,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -258,6 +286,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -90,6 +90,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -192,6 +196,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -258,6 +286,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -89,6 +89,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -191,6 +195,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -257,6 +285,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -89,6 +89,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -191,6 +195,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -257,6 +285,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -91,6 +91,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -201,6 +205,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -267,6 +295,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -93,6 +93,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -195,6 +199,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -261,6 +289,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -90,6 +90,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -192,6 +196,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -258,6 +286,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -89,6 +89,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -191,6 +195,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -257,6 +285,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -90,6 +90,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -192,6 +196,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -258,6 +286,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -91,6 +91,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -201,6 +205,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -267,6 +295,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -91,6 +91,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -193,6 +197,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -259,6 +287,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -89,6 +89,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -191,6 +195,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -257,6 +285,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -90,6 +90,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -192,6 +196,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -258,6 +286,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -90,6 +90,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -200,6 +204,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -266,6 +294,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -90,6 +90,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -192,6 +196,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -258,6 +286,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -89,6 +89,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -191,6 +195,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -257,6 +285,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -90,6 +90,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -192,6 +196,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -258,6 +286,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -89,6 +89,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -191,6 +195,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -257,6 +285,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -89,6 +89,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -191,6 +195,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -257,6 +285,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -90,6 +90,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -192,6 +196,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -258,6 +286,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -91,6 +91,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -193,6 +197,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -259,6 +287,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -90,6 +90,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -192,6 +196,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -258,6 +286,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -90,6 +90,10 @@ function default_settings() {
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||||
GATE=""
|
GATE=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Server Address: ${BGN}Host${CL}"
|
||||||
|
NS=""
|
||||||
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
|
@ -192,6 +196,30 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
if [ -z $SD ]; then
|
||||||
|
SD=""
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
SX=$SD
|
||||||
|
SD="-searchdomain=$SD"
|
||||||
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
NS=$(whiptail --inputbox "Set a DNS Server IP (leave blank for HOST)" 8 58 --title "DNS SERVER IP" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
|
exitstatus=$?
|
||||||
|
if [ $exitstatus = 0 ]; then
|
||||||
|
if [ -z $NS ]; then
|
||||||
|
NS=""
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}Host${CL}"
|
||||||
|
else
|
||||||
|
NX=$NS
|
||||||
|
NS="-nameserver=$NS"
|
||||||
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
MAC1=$(whiptail --inputbox "Set a MAC Address(leave blank for default)" 8 58 --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
|
@ -258,6 +286,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
$SD
|
||||||
|
$NS
|
||||||
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
Loading…
Reference in New Issue