3 # desc: configure your internet connection via an ethernet card
8 echo 'Please choose a method for configuring your ethernet connection.'
10 echo ' manual - specify IP address, network mask, gateway IP address'
11 echo ' dhcp - use DHCP to automatically configure'
14 prompt -d dhcp 'Configuration method' manual dhcp
19 if(~ $ethermethod manual){
20 prompt 'ip address'; ipaddr=$rd
21 prompt 'network mask'; ipmask=$rd
22 prompt 'gateway address'; gwaddr=$rd
23 export ipaddr ipmask gwaddr
25 prompt -d $gwaddr 'dns server'; DNSSERVER=$rd
29 export ethermethod gwaddr ipaddr ipmask dhcphost
33 if(! ~ $ethermethod manual dhcp) {
37 if(~ $ethermethod manual && ~ 0 $#ipaddr $#ipmask $#gwaddr) {