diff options
author | John Klug <john.klug@multitech.com> | 2018-06-28 14:06:52 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2018-06-28 14:06:52 -0500 |
commit | 7172a72ac22f4ed7380f603c9519299ded612bb8 (patch) | |
tree | 72f3f5bf0d5b10f9efe51891241f4f7dc7f267a7 /src/ubpasswd.sh | |
parent | cfe8af3b0629368eeb61354e52ec12cc3d8637bd (diff) | |
download | mts-id-eeprom-7172a72ac22f4ed7380f603c9519299ded612bb8.tar.gz mts-id-eeprom-7172a72ac22f4ed7380f603c9519299ded612bb8.tar.bz2 mts-id-eeprom-7172a72ac22f4ed7380f603c9519299ded612bb8.zip |
mts-ubpasswd to use uuid and device-id rather than MAC by default
Diffstat (limited to 'src/ubpasswd.sh')
-rwxr-xr-x | src/ubpasswd.sh | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/ubpasswd.sh b/src/ubpasswd.sh index 8a6abf9..65e35eb 100755 --- a/src/ubpasswd.sh +++ b/src/ubpasswd.sh @@ -24,8 +24,7 @@ if ! [[ -x /sbin/mts-hashpwd ]] ; then exit 1 fi usage() { - echo "ubpasswd [-c] [-r] [-u] [-d] [-s salt] [password]" - echo " -c clear the U-Boot password" + echo "ubpasswd [-u] [-d] [-s salt] [password]" echo " -u means u-boot only (not UNIX password)" echo " -s salt is user supplied salt" echo " -r returns true if U-Boot password" @@ -42,13 +41,8 @@ usage() { ((hassalt=0)) ((debug=0)) ((upwd=0)) -while getopts ":cdfrs:u" opt; do +while getopts ":dfrs:u" opt; do case $opt in - c) - u-boot setenv mtsp - u-boot setenv mtss - exit 0 - ;; f) if ! /bin/fgrep "mts password protected" /dev/mtdblock2 >/dev/null 2>&1; then echo "U-Boot does not support password protection." |