cpurc 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #!/bin/rc
  2. echo -n cpu > /env/service
  3. date > /env/boottime
  4. # replace FILESERVER with the name of your file server
  5. # here we start with kfs, your local disk file system
  6. fileserver=kfs
  7. # replace FACEDOM with the local domain to be used in the faces database
  8. facedom=FACEDOM
  9. # mount points
  10. mntgen -s slashn && chmod 666 /srv/slashn
  11. # name translation, cs sets /dev/sysname
  12. ndb/cs
  13. sysname=`{cat /dev/sysname}
  14. ndb/dns -r
  15. # parallelism for mk
  16. NPROC=`{wc -l /dev/sysstat}
  17. NPROC=`{echo $NPROC|sed 's/ .*//'}
  18. prompt=($sysname^'# ' ' ')
  19. # pick a timeserver closer to you when you can or we'll get clogged
  20. aux/timesync plan9.bell-labs.com
  21. # uncomment the following for booting other systems
  22. #ip/dhcpd
  23. #ip/tftpd
  24. # If you are on an auth server, start these before listening:
  25. #
  26. # auth/keyfs -wp -m /mnt/keys /adm/keys >/dev/null >[2=1]
  27. # auth/cron >>/sys/log/cron >[2=1] &
  28. #
  29. # also rename some files:
  30. #
  31. # if(! test -e /rc/bin/service.auth/il566){
  32. # mv /rc/bin/service.auth/authsrv.il566 /rc/bin/service.auth/il566
  33. # mv /rc/bin/service.auth/authsrv.tcp567 /rc/bin/service.auth/tcp567
  34. # mv /rc/bin/service/il566 /rc/bin/service/_il566
  35. # mv /rc/bin/service/tcp567 /rc/bin/service/_tcp567
  36. # }
  37. # services available to networks
  38. aux/listen -q -t /rc/bin/service.auth -d /rc/bin/service il
  39. aux/listen -q -t /rc/bin/service.auth -d /rc/bin/service tcp