1
0

boota: 532 B

123456789101112131415161718192021222324
  1. #!/bin/rc
  2. rfork e
  3. if(! test -f /srv/dos)
  4. dossrv >/dev/null </dev/null >[2]/dev/null
  5. unmount /n/a:>[2]/dev/null
  6. switch($bootfile) {
  7. case sd*!cdboot!*
  8. # just look for the right file. bootfile isn''t trustworthy
  9. adisk=/dev/sd*/cdboot
  10. if(! ~ $#adisk 1)
  11. adisk=$adisk(1)
  12. case sd*
  13. adisk=`{echo $bootfile | sed 's#(sd..).*#/dev/\1/dos#'}
  14. case fd*
  15. adisk=`{echo $bootfile | sed 's#(fd.).*#/dev/\1disk#'}
  16. case *
  17. echo 'unknown bootfile '^$bootfile^'; mail 9trouble@plan9.bell-labs.com'
  18. exit oops
  19. }
  20. mount -c /srv/dos /n/a: $adisk