aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Rigby <john.rigby@linaro.org>2011-07-13 23:05:19 -0600
committerJohn Rigby <john.rigby@linaro.org>2011-08-15 15:24:23 -0600
commita7dbc1283da6c19beab4ba059e2b2d7047eae7b9 (patch)
tree4c6f90737f4c55dd9eac839e6f7fedf558f68e85
parent2f84e8ec3a1f25b9c93501d2d75560988c62f4b3 (diff)
downloadu-boot-linaro-stable-a7dbc1283da6c19beab4ba059e2b2d7047eae7b9.tar.gz
PXE: look for usbethaddr if no ethaddr
Signed-off-by: John Rigby <john.rigby@linaro.org>
-rw-r--r--common/cmd_pxecfg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/cmd_pxecfg.c b/common/cmd_pxecfg.c
index ee1b66b86..694a212ee 100644
--- a/common/cmd_pxecfg.c
+++ b/common/cmd_pxecfg.c
@@ -50,6 +50,9 @@ static void format_mac_pxecfg(char **outbuf)
ethaddr = from_env("ethaddr");
if (!ethaddr)
+ ethaddr = from_env("usbethaddr");
+
+ if (!ethaddr)
return;
*outbuf = strdup(ethaddr);