]> git.lizzy.rs Git - plan9front.git/blobdiff - rc/bin/inst/configether
inst: remove the cdboot parameter from plan9.ini
[plan9front.git] / rc / bin / inst / configether
index 5435853e9d69373067cdc0d1ece8696c047a380c..3487a8b807a03422921eb63b34d63ca773d232a4 100755 (executable)
@@ -16,28 +16,12 @@ case go
        gwaddr=xxx
        ipaddr=xxx
        ipmask=xxx
-       switch($ethermethod){
-       case dhcp
-               echo
-               echo 'Some ISPs, notably @HOME, require a host name passed with DHCP'
-               echo 'requests.  An example for @HOME would be "cc1018221-a".  If your'
-               echo 'ISP supplied you such a name, enter it.'
-               echo
-               prompt -d none 'dhcp host name'; dhcphost=$rd
-               switch($dhcphost){
-               case none
-                       dhcphost=();
-               case *
-                       dhcphost=(-h $dhcphost)
-               }
-               export dhcphost
-       case manual
+       if(~ $ethermethod manual){
                prompt 'ip address'; ipaddr=$rd
                prompt 'network mask'; ipmask=$rd
                prompt 'gateway address'; gwaddr=$rd
                export ipaddr ipmask gwaddr
        }
-       
        export ethermethod gwaddr ipaddr ipmask dhcphost
        exec startether go