# $Id$ network_config() { dialog \ --stdout \ --colors \ --title "Network Configuration" \ --backtitle "${TITLE}" \ --form "Enter a Hostname:" 10 70 0 \ "Hostname:" 1 1 "${NETWORK_HOSTNAME}" 1 18 36 0 \ " Domain:" 2 1 "${NETWORK_DOMAIN}" 2 18 36 0 } network_config_select() { dialog \ --stdout \ --colors \ --title "Network Configuration" \ --backtitle "${TITLE}" \ --radiolist "Select a network type" \ 10 45 3 \ dhcp "DHCP based networking" on \ static "IP based networking" "" \ none "Disable network support" "" return $? } network_config_static() { dialog \ --stdout \ --colors \ --title "Network Configuration" \ --backtitle "${TITLE}" \ --form "Static network setup:" 12 70 0 \ "IP-Address:" 1 1 "${NETWORK_IP}" 1 18 36 0 \ " Netmask:" 2 1 "${NETWORK_NETMASK}" 2 18 36 0 \ " Broadcast:" 3 1 "${NETWORK_BROADCAST}" 3 18 36 0 \ " Gateway:" 4 1 "${NETWORK_GATEWAY}" 4 18 36 0 \ "Nameserver:" 5 1 "${NETWORK_NAMESERVER}" 5 18 36 0 } network_select_nic() { local items=( $(get_hwinfo -d netcard | sed -e "s:\ :_:g") ) local count=${#items[*]} local i dialog \ --stdout \ --colors \ --title "Network Configuration" \ --backtitle "${TITLE}" \ --radiolist "Select a available NIC" \ 10 60 ${count} \ $(for (( i=0; i