1
0

9fat: 367 B

123456789101112131415161718
  1. #!/bin/rc
  2. rfork e
  3. part=`{ls /dev/fs/9fat /dev/sd*/9fat >[2]/dev/null}
  4. if(~ $#part 0) {
  5. echo 'no 9fat partition found' >[1=2]
  6. exit no.9fat
  7. }
  8. part=$part(1)
  9. if(! test -f /srv/dos)
  10. dossrv >/dev/null </dev/null >[2]/dev/null
  11. unmount /n/9fat >/dev/null >[2]/dev/null
  12. mount -c /srv/dos /n/9fat $part
  13. unmount /n/9 >/dev/null >[2]/dev/null
  14. mount -c /srv/dos /n/9 $part