#!/bin/rc
echo -n cpu > /env/service
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 mail uncached
mount -c /srv/boot /n/termrc.tmp
bind -c /n/termrc.tmp/mail /mail
unmount /n/termrc.tmp

# name translation, cs sets /dev/sysname
ndb/cs
sysname=`{cat /dev/sysname}
ndb/dns -r

# parallelism for mk
NPROC=`{wc -l /dev/sysstat}
NPROC=`{echo $NPROC|sed 's/ .*//'}

prompt=($sysname^'# ' '	')

#aux/timesync -nl -d /sys/log/timesync.d

# uncomment the following for booting other systems
#ip/dhcpd
#ip/tftpd

# services available to networks
aux/listen -q -d /rc/bin/service il
aux/listen -q -d /rc/bin/service tcp

# run these instead of the above two if you are an auth server
# also be sure to remove /rc/bin/service/il566 and tcp567
#
# auth/keyfs -wp -m /mnt/keys /adm/keys >/dev/null >[2=1]
# aux/listen -q -d /rc/bin/service -t /rc/bin/service.auth il
# aux/listen -q -d /rc/bin/service -t /rc/bin/service.auth tcp
# auth/cron >>/sys/log/cron >[2=1] &
