1
0

setup 552 B

12345678910111213141516171819202122232425
  1. #!/bin/rc
  2. # setup - prep for the mkfile
  3. . ./defs
  4. 9fs sources
  5. 9fs other
  6. 9fs outfsother
  7. if (test -e /cfg/$sysname/config)
  8. . /cfg/$sysname/config
  9. if not
  10. outip=204.178.31.2
  11. import -c tcp!$outip!666 $dist/web.protect
  12. if (! test -e $dist/web.protect/plan9.iso) {
  13. echo import web.protect failed: $dist/web.protect/plan9.iso missing \
  14. >[1=2]
  15. bind /n/outfsother/web.protect $dist/web.protect # HACK
  16. if (! test -e $dist/web.protect/plan9.iso) {
  17. echo bind outfsother failed: $dist/web.protect/plan9.iso \
  18. missing >[1=2]
  19. exit no-web-protect
  20. }
  21. }