Skip to content
Permalink
Browse files

HWID for NanoPi M4, fix > 20

  • Loading branch information...
NEMS Linux
NEMS Linux committed Apr 2, 2019
1 parent c843038 commit 76e6188d341eb0a351af0585bf601c20078c03dd
Showing with 4 additions and 1 deletion.
  1. +4 −1 info.sh
@@ -118,11 +118,14 @@ elif [[ $COMMAND == "hwid" ]]; then
elif (( $platform == 11 )); then
/sbin/ifconfig eth0 | grep -o -E '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}' | md5sum | cut -d"-" -f1 -
# Virtual Appliance
elif (( $platform >= 20 )); then
elif (( $platform == 20 )); then
/sbin/ifconfig enp0s3 | grep -o -E '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}' | md5sum | cut -d"-" -f1 -
# ODROID-N2
elif (( $platform >= 15 )) && (( $platform <= 16 )); then
cat /proc/cpuinfo | grep Serial | printf '%s' $(cut -n -d ' ' -f 2) | md5sum | cut -d"-" -f1 -
# NANOPI M4
elif (( $platform >= 68 )) && (( $platform <= 69 )); then
cat /proc/cpuinfo | grep Serial | printf '%s' $(cut -n -d ' ' -f 2) | md5sum | cut -d"-" -f1 -
fi

elif [[ $COMMAND == "speedtest" ]]; then

0 comments on commit 76e6188

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