#!/bin/rc
echo -n cpu > /env/service
date > /env/boottime
echo -n plan9 > /env/site

# cs sets /dev/sysname
ndb/cs

# parallelism for mk
NPROC=`{wc -l /dev/sysstat | sed 's/^ *//;s/ .*//'}
# configure the swap channel
# mount -c /srv/boot /n/bootesother other; swap /n/bootesother/swap

sysname=`{cat /dev/sysname}
prompt=($sysname^'% ' '	')
switch($sysname){
case p9auth	# PC as cpu server and auth server
	auth/keyfs -m/mnt/keys /adm/keys
	ip/ipconfig -b
	ip/rarpd & 	# only needed if you have suns to boot
	ip/tftpd & ip/bootp
	ndb/dns
	aux/listen -q -t /bin/service.auth -d /bin/service il
	aux/listen -q -t /bin/service.auth -d /bin/service tcp
case kremvax	# cpu server; modify to suit
	echo warning: using default cpurc configuration for $sysname
	ip/ipconfig -b
	ip/rarpd & 	# only needed if you have suns to boot
	ip/tftpd & ip/bootp
	aux/listen il
	aux/listen tcp
case *	# unrecognized name
	echo warning: using default cpurc configuration for $sysname
	ip/ipconfig -b
	ip/rarpd & 	# only needed if you have suns to boot
	ip/tftpd & ip/bootp
	aux/listen il
	aux/listen tcp
}
date >> /$cputype/log/$sysname
echo -n 'add tcp il udp' > /net/cs

echo swap not enabled, look at /rc/bin/cpurc
