mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
options to set DNS
This commit is contained in:
parent
bee1732013
commit
3c7a66ee7e
58 changed files with 1624 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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}"
|
||||
|
@ -188,6 +192,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
|
||||
|
|
|
@ -89,6 +89,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}"
|
||||
|
@ -191,6 +195,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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -89,6 +89,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}"
|
||||
|
@ -191,6 +195,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
|
||||
|
|
|
@ -91,6 +91,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}"
|
||||
|
@ -201,6 +205,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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -89,6 +89,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}"
|
||||
|
@ -191,6 +195,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
|
||||
|
|
|
@ -89,6 +89,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}"
|
||||
|
@ -191,6 +195,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
|
||||
|
|
|
@ -89,6 +89,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}"
|
||||
|
@ -191,6 +195,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
|
||||
|
|
|
@ -89,6 +89,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}"
|
||||
|
@ -191,6 +195,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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -89,6 +89,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}"
|
||||
|
@ -191,6 +195,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
|
||||
|
|
|
@ -89,6 +89,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}"
|
||||
|
@ -191,6 +195,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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -89,6 +89,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}"
|
||||
|
@ -191,6 +195,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
|
||||
|
|
|
@ -89,6 +89,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}"
|
||||
|
@ -191,6 +195,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
|
||||
|
|
|
@ -91,6 +91,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}"
|
||||
|
@ -201,6 +205,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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -89,6 +89,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}"
|
||||
|
@ -191,6 +195,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
|
||||
|
|
|
@ -89,6 +89,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}"
|
||||
|
@ -191,6 +195,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
|
||||
|
|
|
@ -89,6 +89,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}"
|
||||
|
@ -191,6 +195,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
|
||||
|
|
28
ct/n8n-v4.sh
28
ct/n8n-v4.sh
|
@ -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
|
||||
|
|
|
@ -89,6 +89,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}"
|
||||
|
@ -191,6 +195,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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -89,6 +89,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}"
|
||||
|
@ -191,6 +195,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
|
||||
|
|
|
@ -89,6 +89,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}"
|
||||
|
@ -191,6 +195,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
|
||||
|
|
|
@ -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}"
|
||||
|
@ -200,6 +204,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
|
||||
|
|
28
ct/omv-v4.sh
28
ct/omv-v4.sh
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -89,6 +89,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}"
|
||||
|
@ -191,6 +195,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
|
||||
|
|
|
@ -89,6 +89,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}"
|
||||
|
@ -191,6 +195,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
|
||||
|
|
|
@ -91,6 +91,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}"
|
||||
|
@ -201,6 +205,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
|
||||
|
|
|
@ -93,6 +93,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}"
|
||||
|
@ -195,6 +199,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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -89,6 +89,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}"
|
||||
|
@ -191,6 +195,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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -91,6 +91,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}"
|
||||
|
@ -201,6 +205,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
|
||||
|
|
|
@ -91,6 +91,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}"
|
||||
|
@ -193,6 +197,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
|
||||
|
|
|
@ -89,6 +89,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}"
|
||||
|
@ -191,6 +195,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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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}"
|
||||
|
@ -200,6 +204,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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -89,6 +89,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}"
|
||||
|
@ -191,6 +195,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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -89,6 +89,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}"
|
||||
|
@ -191,6 +195,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
|
||||
|
|
|
@ -89,6 +89,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}"
|
||||
|
@ -191,6 +195,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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -91,6 +91,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}"
|
||||
|
@ -193,6 +197,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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue