diff options
Diffstat (limited to 'board/keymile')
-rw-r--r-- | board/keymile/common/ivm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/board/keymile/common/ivm.c b/board/keymile/common/ivm.c index bcf3aed..70d78457f 100644 --- a/board/keymile/common/ivm.c +++ b/board/keymile/common/ivm.c @@ -221,7 +221,12 @@ static int ivm_analyze_block2(unsigned char *buf, int len) sprintf((char *)valbuf, "%pM", buf); } #endif +#ifdef MACH_TYPE_KM_KIRKWOOD setenv((char *)"ethaddr", (char *)valbuf); +#else + if (getenv("ethaddr") == NULL) + setenv((char *)"ethaddr", (char *)valbuf); +#endif /* IVM_MacCount */ count = (buf[10] << 24) + |