hardware.sh 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #!/bin/sh
  2. # file: scripts/hardware.sh
  3. # this file defines the names and addresses of ethernet interfaces
  4. # on the host and the powerline device connected to each; every host
  5. # should have its own copy of this file so that generic scripts can
  6. # written and moved from one host to another without change;
  7. #
  8. # symbol ETH is referenced in files such as start.sh, flash.sh and
  9. # upgrade.sh that operation on one device only;
  10. #
  11. # symbols ETH1, ETH2, NIC1, NIC, PLD1 and PLD22 are referenced in
  12. # files such as pts.sh that operate on two devices; by convention:
  13. #
  14. # interface ETH1 has address NIC1 and is connected to device PLD1;
  15. # interface ETH2 had address NIC2 and is connected to device PLD2;
  16. #
  17. # to include this file in a new script:
  18. #
  19. # . ${SCRIPTS}/hardware.sh
  20. #
  21. # ====================================================================
  22. # symbols;
  23. # --------------------------------------------------------------------
  24. ETH=eth1
  25. # ====================================================================
  26. # host interface names;
  27. # --------------------------------------------------------------------
  28. ETH1=eth2
  29. ETH2=eth4
  30. # ====================================================================
  31. # host interface addresses;
  32. # --------------------------------------------------------------------
  33. NIC1=00:50:04:a5:d9:5a
  34. NIC2=00:01:02:d0:8f:89
  35. # ====================================================================
  36. # powerline device addresses;
  37. # --------------------------------------------------------------------
  38. PLD1=00:B0:52:00:FD:0D
  39. PLD2=00:B0:52:00:FD:0E
  40. # ====================================================================
  41. # miscellaneous device addresses;
  42. # --------------------------------------------------------------------
  43. master=00:b0:52:da:da:01
  44. slave1=00:b0:52:da:da:02
  45. slave2=00:b0:52:da:da:03
  46. slave3=00:b0:52:da:da:04
  47. slave4=00:b0:52:dd:dd:05