pushbutton.sh 938 B

123456789101112131415161718192021222324252627282930313233343536
  1. #!/bin/sh
  2. # file: scripts/pushbutton.sh
  3. # This script illustrates how to use MS_PB_ENC to break and make a
  4. # network for testing purposes;
  5. # ====================================================================
  6. # host symbols;
  7. # --------------------------------------------------------------------
  8. . /etc/environment
  9. . ${SCRIPTS}/hardware.sh
  10. # ====================================================================
  11. # leave network;
  12. # --------------------------------------------------------------------
  13. int6k -i ${ETH1} -B 2
  14. int6kwait -i ${ETH1} -rs
  15. int6k -i ${ETH2} -B 2
  16. int6kwait -i${ETH2} -rs
  17. int6k -i ${ETH1} -I
  18. int6k -i ${ETH2} -I
  19. # ====================================================================
  20. # create network;
  21. # --------------------------------------------------------------------
  22. int6k -i ${ETH1} -B 1
  23. int6k -i ${ETH2} -B 1
  24. int6kwait -i ${ETH1} -rs
  25. int6kwait -i ${ETH2} -rs
  26. int6k -i ${ETH1} -I
  27. int6k -i ${ETH2} -I