git: 9front

Download patch

ref: 99cb78e9b73401524f0d5eed6b98d8a3069df3cd
parent: 3d48ed7588192d337b3ba994adca1c49033ff9b6
author: cinap_lenrek <cinap_lenrek@localhost>
date: Fri May 13 00:20:30 EDT 2011

dont configure loopback interfaces

--- a/rc/bin/cpurc
+++ b/rc/bin/cpurc
@@ -30,8 +30,6 @@
 # start up internet if we don't already have an address
 if(! grep u /net/ipselftab | grep -sv 127.0.0.1)
 	ip/ipconfig
-if(! grep -s 127.0.0.1 /net/ipselftab)
-	ip/ipconfig loopback /dev/null 127.1
 
 # if we're not a server, start a dns resolver
 if(! test -e /srv/dns)
--- a/rc/bin/termrc
+++ b/rc/bin/termrc
@@ -1,6 +1,5 @@
 #!/bin/rc
-# the 9pcf kernel runs this file
-
+# terminal startup
 TIMESYNCARGS=(-rLa1000000)
 NDBFILE=/lib/ndb/local
 
@@ -60,15 +59,6 @@
 	if(! ps|grep -s timesync)
 		if(! ~ $TIMESYNCARGS '')
 			aux/timesync $TIMESYNCARGS
-
-	# add the loop-back medium
-	if(! grep -s 127.0.0.1 /net/ipselftab)
-		ip/ipconfig loopback /dev/null 127.1 >/dev/null >[2=1]
-
-	# set things up for vmware
-	if(! ~ `{cat /dev/user} none)
-		if(test -e /bin/aux/vmware)
-			aux/vmware
 }
 
 fn ask {
@@ -116,4 +106,4 @@
 if (test -f /dev/apm)
 	aux/apm
 
-dontkill '^(ipconfig|factotum|mntgen|fossil|kfs|cwfs.*|cs|dns|listen|reboot)$'
+dontkill '^(ipconfig|factotum|mntgen|kfs|cwfs.*|cs|dns|listen|reboot)$'
--