stop 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #!/bin/rc
  2. # desc: save the current installation state, to be resumed later
  3. # prereq:
  4. # mustdo:
  5. switch($1) {
  6. case checkdone
  7. stop=notdone
  8. export stop
  9. case checkready
  10. if(~ $cdboot yes){
  11. stop=notdone
  12. export stop
  13. }
  14. case go
  15. coherence
  16. switch($2){
  17. case finished
  18. echo 'We need to write the state of the current installation to the install floppy,'
  19. echo 'so that you can pick up from here if, for example, you want to set up'
  20. echo 'more boot methods.'
  21. echo
  22. case *
  23. echo 'We need to write the state of the current installation to the install floppy.'
  24. echo 'so that you can pick up from here when you wish to continue.'
  25. echo
  26. }
  27. echo -n 'Please make sure the install floppy is in the floppy drive and press enter.'
  28. read >/dev/null >[2]/dev/null
  29. if(! a:) {
  30. echo 'Couldn''t mount the floppy disk; sorry.'
  31. exit
  32. }
  33. if(cp /tmp/vars /n/a:/9inst.cnf || cp /tmp/vars /n/a:/9inst.cnf) {
  34. echo 'Your install state has been saved to the install floppy.'
  35. if(~ $2 finished){
  36. echo
  37. echo 'Congratulations; you''ve completed the install.'
  38. }
  39. echo
  40. halt
  41. }
  42. echo 'Couldn''t save the state to your install floppy. Sorry.'
  43. }