From 7172a72ac22f4ed7380f603c9519299ded612bb8 Mon Sep 17 00:00:00 2001 From: John Klug Date: Thu, 28 Jun 2018 14:06:52 -0500 Subject: mts-ubpasswd to use uuid and device-id rather than MAC by default --- src/hashpwd.cpp | 24 +++++++++++++++++------- src/ubpasswd.sh | 10 ++-------- 2 files changed, 19 insertions(+), 15 deletions(-) (limited to 'src') diff --git a/src/hashpwd.cpp b/src/hashpwd.cpp index 414ffbd..6bc322c 100644 --- a/src/hashpwd.cpp +++ b/src/hashpwd.cpp @@ -10,6 +10,8 @@ #include #include +#define MYVERSION "1.1" + using namespace std; int v = 0; @@ -148,28 +150,33 @@ void usage(void) { cout << "usage:" << endl << " mts-hashpwd [-v] [[-d did] [-m mac] | [-p password]] salt" << endl << + " -V version" << endl << " -v verbose" << endl << " -d did Device ID (serial #)" << endl << " -m mac Ethernet mac address" << endl << " -p password" << endl << - "Either password must be supplied, or Device-ID and Ethernet Mac address" << endl << + " -u uuid UUID (base 16)" << endl << + "Either password must be supplied, or Device-ID and " << endl + << "either Ethernet Mac address or UUID" << endl << "salt is required." </dev/null 2>&1; then echo "U-Boot does not support password protection." -- cgit v1.2.3