Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Boot by mac address
2013-04-25, 15:39 (This post was last modified: 2013-04-25 15:40 by mcb30.)
Post: #2
RE: Boot by mac address
(2013-04-24 10:09)mino Wrote:  
Code:
autoboot net0

Doesnt work reliable on some of my machines because net0 is sometimes net1 of the boot before. But i can identify my interfaces explicit by mac address. Any solution for that?

You can use the iseq command to check the MAC address of an interface. For example:

Code:
set mac:hex 00:1f:bc:32:0a:c5
set bootif net0
iseq ${${bootif}/mac} ${bootmac} && goto boot ||
set bootif net1
iseq ${${bootif}/mac} ${bootmac} && goto boot ||
...
:boot
autoboot ${bootif}

There isn't currently any way to iterate over the available net devices, though such a facility may be added in the near future.

Michael
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Boot by mac address - mino - 2013-04-24, 10:09
RE: Boot by mac address - mcb30 - 2013-04-25 15:39



User(s) browsing this thread: 1 Guest(s)