summaryrefslogtreecommitdiff
path: root/rc/bin/inst/ndbsetup
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2018-08-15 21:39:30 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2018-08-15 21:39:30 +0200
commitcd752a39f8b0b36378800740c0e5915beabfb56d (patch)
treeb1c2b1c531321704e49928e0771dac90badef186 /rc/bin/inst/ndbsetup
parentab4c0a012f4b57e9a9a2c084097c919a40029380 (diff)
downloadplan9front-cd752a39f8b0b36378800740c0e5915beabfb56d.tar.xz
ipv6 autoconfiguration on ethernet
for ip autoconfiguration, setup ipv6 link local addresses and do SLAAC in parallel to DHCP.
Diffstat (limited to 'rc/bin/inst/ndbsetup')
-rwxr-xr-xrc/bin/inst/ndbsetup4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc/bin/inst/ndbsetup b/rc/bin/inst/ndbsetup
index 8c72076ef..076793d53 100755
--- a/rc/bin/inst/ndbsetup
+++ b/rc/bin/inst/ndbsetup
@@ -7,7 +7,7 @@ etheraddr=`{cat $netdev/addr >[2]/dev/null}
switch($1){
case checkready checkdone
- if(~ $#etheraddr 1 && ~ $netisfrom ether && ~ $ethermethod dhcp manual && \
+ if(~ $#etheraddr 1 && ~ $netisfrom ether && ~ $ethermethod automatic manual && \
! grep -s $etheraddr /n/newfs/lib/ndb/local)
ndbsetup=ready
if not
@@ -33,7 +33,7 @@ case go
echo
switch($ethermethod){
- case dhcp
+ case automatic
echo $se
case manual
echo $se 'ip='^$ipaddr 'ipmask='^$ipmask 'ipgw='^$gwaddr