get mac from ipxe in different format (no delimiter at all)
|
2013-05-04, 12:39
(This post was last modified: 2013-05-04 14:43 by Torgeir.)
Post: #1
|
|||
|
|||
get mac from ipxe in different format (no delimiter at all)
Hi!
I found myself in need of getting the mac from iPXE with no delimiter at all. Sanboot with the MAC address (no delimited), in an embedded script within iPXE. Usage: Code: iPXE> show mac So I made myself a little patch for this (don't know if anyone else would ever need it...), but here it goes. settings.c.patch Code: --- a/src/core/settings.c 2013-05-04 12:41:09.828764000 +0200 Code: --- a/src/ipxe/include/settings.h 2013-05-04 12:41:09.928765000 +0200 Torgeir |
|||
2013-05-04, 14:08
Post: #2
|
|||
|
|||
RE: get mac from ipxe in different format (no delimiter at all)
A Good idea!
Since it is still in hex, may I suggest something like "mac:hexnd" (Hex, No Delimiter) to keep the syntax consistent? "Thus far, you have been adrift within the sheltered harbor of my patience..." |
|||
2013-05-04, 14:44
(This post was last modified: 2013-05-04 14:46 by Torgeir.)
Post: #3
|
|||
|
|||
RE: get mac from ipxe in different format (no delimiter at all)
Couldn't agree more!
That does sound and look better |
|||
2013-05-04, 17:00
Post: #4
|
|||
|
|||
RE: get mac from ipxe in different format (no delimiter at all)
Torgeir: I'd suggest you post this patch on the mailing-list, or submit a pull request on the ipxe/ipxe github project. Then it should hopefully be noticed at some point.
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)