diff options
| author | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-08-15 21:39:30 +0200 |
|---|---|---|
| committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-08-15 21:39:30 +0200 |
| commit | cd752a39f8b0b36378800740c0e5915beabfb56d (patch) | |
| tree | b1c2b1c531321704e49928e0771dac90badef186 /rc/bin/inst/ndbsetup | |
| parent | ab4c0a012f4b57e9a9a2c084097c919a40029380 (diff) | |
| download | plan9front-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-x | rc/bin/inst/ndbsetup | 4 |
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 |
