% cat >/sys/lib/dist/changes/1176445806.0.txt << EOF
• Remove local terminal startup settings for inclusion in cpurc.local.
• Take some changes mentioned on 9fans about what sections are commented
out and which are not into account.
• On that note, provide some extra comments on how one might customize
or use cpurc. Step in the right direction; makes using this much more
friendly.
• Whitespace / spelling / consistency changes
EOF
[geoff] --rwxrwxr-x M 121 glenda sys 1884 Apr 13 02:13 rc/bin/cpurc
/n/sourcesdump/2007/0413/plan9/rc/bin/cpurc:1,14 -
/n/sources/plan9/rc/bin/cpurc:1,7
#!/bin/rc
- echo -n cpu > /env/service
+ # cpu server start up
date > /env/boottime
- # replace FILESERVER with the name of your file server
- # here we start with kfs, your local disk file system
- fileserver=kfs
-
- # replace FACEDOM with the local domain to be used in the faces database
- facedom=FACEDOM
-
# mount points
mntgen -s slashn && chmod 666 /srv/slashn
/n/sourcesdump/2007/0413/plan9/rc/bin/cpurc:15,21 -
/n/sources/plan9/rc/bin/cpurc:8,13
# name translation, cs sets /dev/sysname
ndb/cs
sysname=`{cat /dev/sysname}
- ndb/dns -r
# parallelism for mk
NPROC = `{wc -l </dev/sysstat}
/n/sourcesdump/2007/0413/plan9/rc/bin/cpurc:22,32 -
/n/sources/plan9/rc/bin/cpurc:14,28
prompt=($sysname^'# ' ' ')
- # site specific startup
+ # site-specific startup
if(test -e /rc/bin/cpurc.local)
. /rc/bin/cpurc.local
- # cpu specific startup
+ # cpu-specific startup such as
+ # ip/ipconfig ether /dev/ether0 ip gw ...
+ # ndb/dns -s
+ # ip/dhcpd
+ # ip/tftpd
if(test -e /cfg/$sysname/cpurc)
. /cfg/$sysname/cpurc
/n/sourcesdump/2007/0413/plan9/rc/bin/cpurc:40,49 -
/n/sources/plan9/rc/bin/cpurc:36,41
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
-
# If you are on an auth server, start these before listening:
#
# auth/keyfs -wp -m /mnt/keys /adm/keys >/dev/null >[2=1]
/n/sourcesdump/2007/0413/plan9/rc/bin/cpurc:61,68 -
/n/sources/plan9/rc/bin/cpurc:53,61
# 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
+ # we don't use IL, maybe you do
+ if(! netstat -n | grep -v 17008 | grep -s il.*Listen)
+ aux/listen -q il
if(! ps|grep -s timesync) {
aux/timesync -n pool.ntp.org
/n/sourcesdump/2007/0413/plan9/rc/bin/cpurc:72,81 -
/n/sources/plan9/rc/bin/cpurc:65,74
} &
}
- # cpu specific startup
- #if(test -e /cfg/$sysname/cpustart)
- # . /cfg/$sysname/cpustart
+ # cpu-specific late startup
+ if(test -e /cfg/$sysname/cpustart)
+ . /cfg/$sysname/cpustart
- #echo `{date} $sysname >>/sys/log/boot
+ # echo `{date} $sysname >>/sys/log/boot
exit ''
|