Improve VM Serial Number

This commit is contained in:
Taylor Helsper 2019-12-11 19:11:37 -06:00
parent f596e74ce6
commit 9ffee5af01

View File

@ -36,6 +36,9 @@ fi
SERIAL_NUM=$(cat /proc/cpuinfo | grep Serial | cut -d ' ' -f 2) SERIAL_NUM=$(cat /proc/cpuinfo | grep Serial | cut -d ' ' -f 2)
if [[ "$SERIAL_NUM" == "" ]]; then
SERIAL_NUM=$(sudo dmidecode | grep UUID | cut -d ' ' -f 2)
fi
# Set all default / standard bash config settings # Set all default / standard bash config settings
MYNODE_DIR=/mnt/hdd/mynode MYNODE_DIR=/mnt/hdd/mynode