boot 568 B

1234567891011121314151617181920212223242526272829303132
  1. #!/boot/rc -m /boot/rcmain
  2. cpuserver=yes
  3. cd /boot
  4. echo boot...
  5. bind -a '#I' /net
  6. bind -a '#l0' /net
  7. bind -a '#S' /dev
  8. bind '#p' /proc
  9. bind '#d' /fd
  10. bind -a /boot /
  11. ipconfig
  12. authaddr=`{sed -n 's/ auth=(.*)/\1/p' /net/ndb|sed 1q}
  13. fsaddr=`{sed -n 's/ fs=(.*)/\1/p' /net/ndb|sed 1q}
  14. factotum -sfactotum -S -a $authaddr
  15. if(! srv tcp!$fsaddr!564 boot){
  16. if(! srv il!$fsaddr!17008 boot)
  17. exec ./rc -m/boot/rcmain -i
  18. }
  19. if(! mount -c /srv/boot /root)
  20. exec ./rc -m/boot/rcmain -i
  21. bind -ac /root /
  22. rootdir=/root
  23. rootspec=''
  24. /$cputype/init -c
  25. exec ./rc -m/boot/rcmain -i