From 567df638ac46091d64d6616f429293b6ed3a3675 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Wed, 3 Oct 2018 00:53:10 +0200 Subject: [PATCH] cpurc: filter ipv6 loopback address for automatic ip address setup (thanks fhs) --- rc/bin/cpurc | 2 +- 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*){