git: 9front

Download patch

ref: b016298a30de2a45facc7b9a2fb75bdd94eac29c
parent: 582a6063c65672e13ff56cb1e6642943270061da
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue Oct 2 20:53:10 EDT 2018

cpurc: filter ipv6 loopback address for automatic ip address setup (thanks fhs)

--- a/rc/bin/cpurc
+++ b/rc/bin/cpurc
@@ -55,7 +55,7 @@
 
 # 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*){
--- a/rc/bin/termrc
+++ b/rc/bin/termrc
@@ -56,7 +56,7 @@
 
 # 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*){
--