configarch 636 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #!/bin/rc
  2. # desc: set source of distribution archives
  3. # prereq: mountfs
  4. switch($1) {
  5. case go
  6. echo
  7. echo 'Will you be using a distribution archive on local media or the internet?'
  8. echo
  9. prompt 'Distribution is from' local internet
  10. archmedium=$rd
  11. export archmedium
  12. switch($archmedium) {
  13. case local
  14. exec configlocal go
  15. case internet
  16. exec configip go
  17. }
  18. case checkdone
  19. switch($#archmedium) {
  20. case 1
  21. switch($archmedium) {
  22. case local
  23. exec configlocal checkdone
  24. case internet
  25. exec configip checkdone
  26. case *
  27. configarch=notdone
  28. export configarch
  29. }
  30. case *
  31. configarch=notdone
  32. export configarch
  33. }
  34. }