Skip to content
Permalink
Browse files

Several updates for Docker compatibility

  • Loading branch information...
NEMS Linux
NEMS Linux committed Aug 26, 2019
1 parent 592b00a commit 0dbb741373367ebe252af120199f9c92114eb075
Showing with 3 additions and 0 deletions.
  1. +3 −0 info.sh
@@ -154,6 +154,9 @@ elif [[ $COMMAND == "hwid" ]]; then
# 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 -
# Docker
elif (( $platform == 21 )); then
head -1 /proc/self/cgroup|cut -d/ -f3 | 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 -

0 comments on commit 0dbb741

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