Skip to content
Permalink
Browse files

ODROID-C2 HWID generation

  • Loading branch information...
NEMS Linux
NEMS Linux committed Apr 13, 2019
1 parent 470bd2c commit 7419aad2b746d12b77de75f9812699c819d1380a
Showing with 4 additions and 1 deletion.
  1. +4 −1 info.sh
@@ -127,7 +127,10 @@ elif [[ $COMMAND == "hwid" ]]; then
elif (( $platform >= 68 )) && (( $platform <= 69 )); then
cat /proc/cpuinfo | grep Serial | printf '%s' $(cut -n -d ' ' -f 2) | md5sum | cut -d"-" -f1 -
# Tinker Board / S
elif (( $platform == 100 )); then
elif (( $platform == 100 )) || (( $platform == 101 )); then
/sbin/ifconfig $(/usr/local/bin/nems-info nic) | grep -o -E '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}' | md5sum | cut -d"-" -f1 -
# ODROID-C2
elif (( $platform == 12 )); then
/sbin/ifconfig $(/usr/local/bin/nems-info nic) | grep -o -E '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}' | md5sum | cut -d"-" -f1 -
fi

0 comments on commit 7419aad

Please sign in to comment.
You can’t perform that action at this time.