|  | 
| get mac from ipxe in different format (no delimiter at all) - Printable Version +- iPXE discussion forum (https://forum.ipxe.org) +-- Forum: iPXE user forums (/forumdisplay.php?fid=1) +--- Forum: General (/forumdisplay.php?fid=2) +--- Thread: get mac from ipxe in different format (no delimiter at all) (/showthread.php?tid=6897) | 
| get mac from ipxe in different format (no delimiter at all) - Torgeir - 2013-05-04 12:39 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 macSo 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 +0200Code: --- a/src/ipxe/include/settings.h    2013-05-04 12:41:09.928765000 +0200Torgeir RE: get mac from ipxe in different format (no delimiter at all) - MultimediaMan - 2013-05-04 14:08 A Good idea! Since it is still in hex, may I suggest something like "mac:hexnd" (Hex, No Delimiter) to keep the syntax consistent? RE: get mac from ipxe in different format (no delimiter at all) - Torgeir - 2013-05-04 14:44 Couldn't agree more! That does sound and look better   RE: get mac from ipxe in different format (no delimiter at all) - robinsmidsrod - 2013-05-04 17:00 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. |