diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-10-03 00:53:10 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-10-03 00:53:10 +0200 |
commit | 567df638ac46091d64d6616f429293b6ed3a3675 (patch) | |
tree | d26d74f02aaaf2624b7215cddce4674e38c9a15f | |
parent | b56450471faccd9d21633dc8d836a5b18d34535f (diff) | |
download | plan9front-567df638ac46091d64d6616f429293b6ed3a3675.tar.xz |
cpurc: filter ipv6 loopback address for automatic ip address setup (thanks fhs)
-rwxr-xr-x | rc/bin/cpurc | 2 | ||||
-rwxr-xr-x | rc/bin/termrc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/rc/bin/cpurc b/rc/bin/cpurc index 4708c1953..ccd5fb090 100755 --- a/rc/bin/cpurc +++ b/rc/bin/cpurc @@ -55,7 +55,7 @@ if(test -e /cfg/$sysname/cpurc) # automatic ip address setup if(test -r /net/ipselftab){ - if(! grep u /net/ipselftab | grep -sv 127.0.0.1){ + if(! grep u /net/ipselftab | grep -sv '^(127.0.0.1|::1)'){ addrs=`{ndb/query -a sys $sysname ether} if(! ~ $#addrs 0){ for(ether in /net/ether*){ diff --git a/rc/bin/termrc b/rc/bin/termrc index 656b6a77f..14b473c2c 100755 --- a/rc/bin/termrc +++ b/rc/bin/termrc @@ -56,7 +56,7 @@ if(test -e /cfg/$sysname/termrc) # automatic ip address setup if(test -r /net/ipselftab){ - if(! grep u /net/ipselftab | grep -sv 127.0.0.1){ + if(! grep u /net/ipselftab | grep -sv '^(127.0.0.1|::1)'){ addrs=`{ndb/query -a sys $sysname ether} if(! ~ $#addrs 0){ for(ether in /net/ether*){ |