diff options
Diffstat (limited to 'util/nvmutil/nvmutil.c')
-rw-r--r-- | util/nvmutil/nvmutil.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 0576167f..b8319a0d 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -149,7 +149,10 @@ main(int argc, char *argv[]) cmd = cmd_setmac; } - if (cmd == cmd_setmac) { + if ((cmd == NULL) && (argc > 2)) { /* nvm gbe [MAC] */ + strMac = COMMAND; + cmd = cmd_setmac; + } else if (cmd == cmd_setmac) { /* nvm gbe setmac [MAC] */ strMac = strRMac; /* random MAC */ if (argc > 3) /* user-supplied MAC (can be random) */ strMac = MAC_ADDRESS; |