test
This commit is contained in:
@@ -45,7 +45,7 @@ domainname=""; while [ -z "$domainname" ]; do domainname=`dialog --no-cancel --i
|
||||
fqdn="${hostname}.${domainname}"
|
||||
nicdevices=""; for nic in $(ip -o link show | awk -F': ' '{print $2}' | grep -v '^lo'); do nicdevices="$nicdevices $nic off"; done
|
||||
nics=`dialog --separate-output --no-cancel --no-items --title "Bridged network devices" --checklist "Select the network devices to be bridged to br0:" $height $width ${window}$nicdevices 2>&1 1>/dev/tty`
|
||||
networktype=`dialog --no-items --no-cancel --title "Network type" --radiolist "Select the network type:" dhcp off static off 2>&1 1>/dev/tty`
|
||||
networktype=`dialog --no-items --no-cancel --title "Network type" --radiolist "Select the network type:" 9 40 2 dhcp off static off 2>&1 1>/dev/tty`
|
||||
if [ "$networktype" = "static" ]; then
|
||||
address=""; while [ -z "$address" ]; do address=`dialog --no-cancel --inputbox "IP Address:" 8 40 2>&1 >/dev/tty`; done
|
||||
subnet=""; while [ -z "$subnet" ]; do subnet=`dialog --no-cancel --inputbox "Subnet mask:" 8 40 2>&1 >/dev/tty`; done
|
||||
|
||||
Reference in New Issue
Block a user