12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <?xml version='1.0' encoding='iso-8859-1'?>
- <!doctype html public '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
- <html xmlns='http://www.w3c.org/1999/xhtml' lang='en-us'>
- <head>
- <title>
- hardware.sh
- </title>
- <meta http-equiv='content-type' content='text/html;iso-8859-1'/>
- <meta name='generator' content='motley-tools 1.9.4 13:40:33 Feb 18 2015'/>
- <meta name='author' content='cmaier@cmassoc.net'/>
- <meta name='robots' content='noindex,nofollow'/>
- <link href='toolkit.css' rel='stylesheet' type='text/css'/>
- </head>
- <body>
- <div class='headerlink'>
- [<a href='fresh.sh.html' title=' fresh.sh '>PREV</a>]
- [<a href='toolkit.html' title=' Index '>HOME</a>]
- [<a href='host64.sh.html' title=' host64.sh '>NEXT</a>]
- </div>
- <pre>
- #!/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
- </pre>
- <div class='footerlink'>
- [<a href='fresh.sh.html' title=' fresh.sh '>PREV</a>]
- [<a href='toolkit.html' title=' Index '>HOME</a>]
- [<a href='host64.sh.html' title=' host64.sh '>NEXT</a>]
- </div>
- </body>
- </html>
|