mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-26 06:28:07 +00:00
Improve VM Serial Number
This commit is contained in:
parent
f596e74ce6
commit
9ffee5af01
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user