1
0

dosmnt 303 B

123456789101112131415161718
  1. #!/bin/rc
  2. rfork e
  3. if(! ~ $#* 2){
  4. echo 'usage: dosmnt N mntpt' >[1=2]
  5. exit usage
  6. }
  7. x=(`{ls /dev/sd??/dos* >[2]/dev/null |uniq})
  8. if(test $#x -lt $1){
  9. echo 'not that many dos disks' >[1=2]
  10. exit usage
  11. }
  12. if(! test -f /srv/dos)
  13. dossrv >/dev/null </dev/null >[2]/dev/null
  14. mount -c /srv/dos $2 $x($1)