Commit d34a7148 authored by Vojtech Myslivec's avatar Vojtech Myslivec 🚀

Add command to get device type

parent 4b6e4c58
......@@ -39,6 +39,9 @@ USAGE="USAGE
$SCRIPTNAME version
Print script version and exit
$SCRIPTNAME hw-type
Print HW type ('$TYPE_ATSHA' or '$TYPE_OTP') and exit
$SCRIPTNAME serial-number
Print serial number of the device
......@@ -506,6 +509,15 @@ main() {
;;
# hardware-specific commands --------
'hw-type'|'type')
if [ $# -eq 1 ]; then
get_device_type
else
error 'Too many arguments for `hw-type` command'
return 1
fi
;;
'serial'|'serial-number')
if [ $# -eq 1 ]; then
do_serial
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment