#!/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 points mntgen -s slashn && chmod 666 /srv/slashn # name translation, cs sets /dev/sysname ndb/cs sysname=`{cat /dev/sysname} ndb/dns -r # parallelism for mk NPROC = `{wc -l /dev/null >[2=1] # auth/cron >>/sys/log/cron >[2=1] & # # also rename some files: # # if(! test -e /rc/bin/service.auth/il566){ # mv /rc/bin/service.auth/authsrv.il566 /rc/bin/service.auth/il566 # mv /rc/bin/service.auth/authsrv.tcp567 /rc/bin/service.auth/tcp567 # mv /rc/bin/service/il566 /rc/bin/service/_il566 # mv /rc/bin/service/tcp567 /rc/bin/service/_tcp567 # } # 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) { aux/timesync -n pool.ntp.org 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 ''