Files
a13labs.infra/ansible/roles/encryption/files/read_system_id
T

5 lines
209 B
Bash
Raw Normal View History

#!/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}'