summaryrefslogtreecommitdiff
path: root/rc/bin/inst
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2012-03-29 18:23:21 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2012-03-29 18:23:21 +0200
commitf000760ec0970b7f9d5e61ba556f7e3b6aecf703 (patch)
treed517e26a770de7f11ecfd0c19fd2f27c9febf8d6 /rc/bin/inst
parent9cb700018a46928cedd5591ef6ddc18562492945 (diff)
use sysname as dhcp host
Diffstat (limited to 'rc/bin/inst')
-rwxr-xr-xrc/bin/inst/configether18
-rwxr-xr-xrc/bin/inst/startether2
2 files changed, 2 insertions, 18 deletions
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
diff --git a/rc/bin/inst/startether b/rc/bin/inst/startether
index bfe8764dd..2580add19 100755
--- a/rc/bin/inst/startether
+++ b/rc/bin/inst/startether
@@ -19,7 +19,7 @@ case go
case manual
ip/ipconfig -g $gwaddr ether /net/ether0 $ipaddr $ipmask >>[2]/srv/log
case dhcp
- ip/ipconfig $dhcphost >>[2]/srv/log
+ ip/ipconfig >>[2]/srv/log
}
case checkdone