9fs 552 B

12345678910111213141516171819202122232425262728
  1. #!/bin/rc
  2. switch($1){
  3. case ''
  4. echo usage: 9fs service '[mountpoint]' >[1=2]
  5. exit usage
  6. case kfs
  7. if(! test -f /srv/kfs)
  8. disk/kfs
  9. mount -c /srv/kfs /n/kfs
  10. case netlib
  11. 9fs netlib2 && bind /n/netlib2/netlib /netlib
  12. case dump
  13. mount /srv/boot /n/dump dump
  14. case other
  15. mount -C /srv/boot /n/other other
  16. case juke
  17. srv -q il!jukefs && mount /srv/il!jukefs /n/njuke && bind -c /n/njuke/juke /n/juke
  18. case sources
  19. srv -m tcp!sources.cs.bell-labs.com sources /n/sources
  20. case *
  21. switch($#*){
  22. case 1
  23. srv -m $1
  24. case *
  25. srv $1
  26. mount -c /srv/$1 $2
  27. }
  28. }