Skip to content
Permalink
Browse files

Generate HWID for AWS

  • Loading branch information...
NEMS Linux
NEMS Linux committed Aug 23, 2019
1 parent cd6c27d commit 7bc839ebfbe71a89f9d9164cac7b2936c91678ee
Showing with 3 additions and 0 deletions.
  1. +3 −0 info.sh
@@ -135,6 +135,9 @@ elif [[ $COMMAND == "hwid" ]]; then
# ODROID XU3/XU4
elif (( $platform == 11 )); then
/sbin/ifconfig eth0 | grep -o -E '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}' | md5sum | cut -d"-" -f1 -
# Amazon Web Services (Use Elastic Network Interfaces to prevent HWID changing upon stop/start of EC2 Instance!)
elif (( $platform == 22 )); then
/sbin/ifconfig eth0 | grep -o -E '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}' | md5sum | cut -d"-" -f1 -
# Virtual Appliance
elif (( $platform == 20 )); then
/sbin/ifconfig $(/usr/local/bin/nems-info nic) | grep -o -E '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}' | md5sum | cut -d"-" -f1 -

0 comments on commit 7bc839e

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