From f000760ec0970b7f9d5e61ba556f7e3b6aecf703 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Thu, 29 Mar 2012 18:23:21 +0200 Subject: use sysname as dhcp host --- rc/bin/inst/configether | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'rc/bin/inst/configether') diff --git a/rc/bin/inst/configether b/rc/bin/inst/configether index 5435853e9..3487a8b80 100755 --- a/rc/bin/inst/configether +++ b/rc/bin/inst/configether @@ -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 -- cgit v1.2.3