5 lines
209 B
Bash
5 lines
209 B
Bash
|
|
#!/bin/bash
|
||
|
|
uuid=$(cat /proc/cpuinfo | grep 'model name' | head -1)
|
||
|
|
uuid+=$(ip link show eth0 | grep ether | awk '{print $2}')
|
||
|
|
uuid+=$(sudo dmidecode -s system-uuid)
|
||
|
|
echo -n "$uuid" | md5sum | awk '{print $1}'
|