diff --git a/misc/emissary/uci-defaults/99-machine-id.sh b/misc/emissary/uci-defaults/99-machine-id.sh index 28e0489..0f7fa99 100755 --- a/misc/emissary/uci-defaults/99-machine-id.sh +++ b/misc/emissary/uci-defaults/99-machine-id.sh @@ -12,13 +12,13 @@ main() { # Accumulate data to create unique machine id local mac_addresses=$(cat /sys/class/net/*/address | uniq | sort) - local device_model=$(cat /sys/firmware/devicetree/base/model) + local device_uuid=$(dmidecode | grep UUID) # Ensure destination directory mkdir -p "$(dirname "$machine_id_file")" # Generate SHA256 hash of data and save it to $machine_id_file - echo "$mac_adresses $device_model" | sha256sum | cut -d ' ' -f1 > "$machine_id_file" + echo "$mac_adresses $device_uuid" | sha256sum | cut -d ' ' -f1 > "$machine_id_file" } main \ No newline at end of file diff --git a/packages.txt b/packages.txt index 9fe1252..151a609 100644 --- a/packages.txt +++ b/packages.txt @@ -1,3 +1,4 @@ luci openssh-server -openssh-sftp-server \ No newline at end of file +openssh-sftp-server +dmidecode \ No newline at end of file