halt 497 B

1234567891011121314151617181920212223242526
  1. #!/bin/rc
  2. echo -n 'Halting file systems...'
  3. for (i in /srv/kfs*) {
  4. if(! ~ $i /srv/kfs*cmd) {
  5. n=`{echo $i | sed 's!/srv/kfs\.(.*)!\1!'}
  6. if(~ $n /srv/kfs)
  7. disk/kfscmd halt
  8. if not
  9. disk/kfscmd -n$n halt
  10. }
  11. }
  12. if(ps | grep -s ' venti$')
  13. venti/sync -h tcp!127.0.0.1!17034
  14. if(ps | grep -s ' fossil$'){
  15. echo fsys all halt >>/srv/fscons
  16. slay fossil|rc
  17. }
  18. echo done
  19. echo
  20. echo Remember to take the install disk out of the drive.
  21. echo Feel free to turn off your computer.
  22. while()
  23. sleep 3600