From b97549809ce9f6cee13486ed2558cef04dba73b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Minier?= Date: Wed, 17 Aug 2011 22:57:11 +0200 Subject: [PATCH 2/2] pxecfg: Lower case MAC address to match pxelinux MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: patches@linaro.org Signed-off-by: Loïc Minier --- common/cmd_pxecfg.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/common/cmd_pxecfg.c b/common/cmd_pxecfg.c index 84b0d25..2f8714c 100644 --- a/common/cmd_pxecfg.c +++ b/common/cmd_pxecfg.c @@ -65,9 +65,12 @@ static void format_mac_pxecfg(char **outbuf) * but in practice always 1 for Ethernet */ sprintf(*outbuf, "01-%s", ethaddr); + /* convert colons to dashes and lower case the MAC address */ for (p = *outbuf + 3; *p; p++) { if (*p == ':') *p = '-'; + else + *p = tolower(*p); } } -- 1.7.5.4