Plan 9 from Bell Labs’s /usr/web/sources/extra/changes/2007/0410

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


% cat >/sys/lib/dist/changes/1176262206.0.txt << EOF
Source namespaces local to $sysname
EOF
 [geoff] --rw-rw-r-- M 92 glenda sys 619 Apr 10 23:29 lib/namespace
	/n/sourcesdump/2007/0410/plan9/lib/namespace:35,37 - 
	/n/sourcesdump/2007/0411/plan9/lib/namespace:35,38
	  
	  . /lib/namespace.local
	  . /lib/namespace.$sysname
	+ . /cfg/$sysname/namespace

% cat >/sys/lib/dist/changes/1176262206.1.txt << EOF
Further changes to cpurc, mostly extremely well explained by the
comments. We don't need to do all the sysname stuff we did for
/cfg/$sysname/diskparts since we're pretty much guaranteed a
$sysname by now.
EOF
 [geoff] --rwxrwxr-x M 92 glenda sys 2142 Apr 10 23:27 rc/bin/cpurc
	/n/sourcesdump/2007/0410/plan9/rc/bin/cpurc:22,30 - 
	/n/sourcesdump/2007/0411/plan9/rc/bin/cpurc:22,45
	  
	  prompt=($sysname^'# ' '	')
	  
	- # pick a timeserver closer to you when you can or we'll get clogged
	- aux/timesync plan9.bell-labs.com
	+ # site specific startup
	+ if(test -e /rc/bin/cpurc.local)
	+ 	. /rc/bin/cpurc.local
	  
	+ # cpu specific startup
	+ if(test -e /cfg/$sysname/cpurc)
	+ 	. /cfg/$sysname/cpurc
	+ 
	+ # if we're not a server, start a dns resolver
	+ if(! test -e /srv/dns)
	+ 	ndb/dns -r
	+ 
	+ # 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
	+ 
	  # uncomment the following for booting other systems
	  #ip/dhcpd
	  #ip/tftpd
	/n/sourcesdump/2007/0410/plan9/rc/bin/cpurc:43,48 - 
	/n/sourcesdump/2007/0411/plan9/rc/bin/cpurc:58,82
	  #	mv /rc/bin/service/tcp567 /rc/bin/service/_tcp567
	  # }
	  
	- # services available to networks
	- aux/listen -q -t /rc/bin/service.auth -d /rc/bin/service il
	- aux/listen -q -t /rc/bin/service.auth -d /rc/bin/service tcp
	+ # start listeners if it hasn't already been done (dicey check)
	+ if(! netstat -n | grep -s 'tcp.*Listen.* (7|9|21|22|23|25|110|113|565|993|17007|17009|17010) .*')
	+ 	aux/listen -q tcp
	+ #if(! netstat -n | grep -v 17008 | grep -s il.*Listen)
	+ #	aux/listen -q il
	+ 
	+ if(! ps|grep -s timesync) {
	+ 	# pick a timeserver closer to you when you can or we'll get clogged
	+ 	aux/timesync plan9.bell-labs.com
	+ 	if (test -e '#r/rtc') @ {
	+ 		sleep 10			# let timesync correct the time
	+ 		awk '{print $1}' /dev/time >'#r/rtc'	# fix hw clock
	+ 	} &
	+ }
	+ 
	+ # cpu specific startup
	+ #if(test -e /cfg/$sysname/cpustart)
	+ #	. /cfg/$sysname/cpustart
	+ 
	+ #echo `{date} $sysname >>/sys/log/boot
	+ 
	+ exit ''

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].