#!/bin/sh # file: scripts/hardware.sh # this file defines the names and addresses of ethernet interfaces # on the host and the powerline device connected to each; every host # should have its own copy of this file so that generic scripts can # written and moved from one host to another without change; # # symbol ETH is referenced in files such as start.sh, flash.sh and # upgrade.sh that operation on one device only; # # symbols ETH1, ETH2, NIC1, NIC, PLD1 and PLD22 are referenced in # files such as pts.sh that operate on two devices; by convention: # # interface ETH1 has address NIC1 and is connected to device PLD1; # interface ETH2 had address NIC2 and is connected to device PLD2; # # to include this file in a new script: # # . ${SCRIPTS}/hardware.sh # # ==================================================================== # symbols; # -------------------------------------------------------------------- ETH=eth1 # ==================================================================== # host interface names; # -------------------------------------------------------------------- ETH1=eth2 ETH2=eth4 # ==================================================================== # host interface addresses; # -------------------------------------------------------------------- NIC1=00:50:04:a5:d9:5a NIC2=00:01:02:d0:8f:89 # ==================================================================== # powerline device addresses; # -------------------------------------------------------------------- PLD1=00:B0:52:00:FD:0D PLD2=00:B0:52:00:FD:0E # ==================================================================== # miscellaneous device addresses; # -------------------------------------------------------------------- master=00:b0:52:da:da:01 slave1=00:b0:52:da:da:02 slave2=00:b0:52:da:da:03 slave3=00:b0:52:da:da:04 slave4=00:b0:52:dd:dd:05