|
|
|
@ -90,6 +90,10 @@ function default_settings() {
|
|
|
|
|
NET=dhcp
|
|
|
|
|
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
|
|
|
|
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}"
|
|
|
|
|
MAC=""
|
|
|
|
|
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}"
|
|
|
|
|
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)
|
|
|
|
|
exitstatus=$?
|
|
|
|
|
if [ $exitstatus = 0 ]; then
|
|
|
|
@ -258,6 +286,8 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
|
|
|
|
export PCT_OPTIONS="
|
|
|
|
|
-features $FEATURES
|
|
|
|
|
-hostname $HN
|
|
|
|
|
$SD
|
|
|
|
|
$NS
|
|
|
|
|
-net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
|
|
|
|
|
-onboot 1
|
|
|
|
|
-cores $CORE_COUNT
|
|
|
|
|