Compare commits

..

No commits in common. "develop" and "v2024.03.01-158ef63" have entirely different histories.

2 changed files with 4 additions and 3 deletions

View File

@ -1 +1 @@
2024.3.13-stable.821.cec5c78 2024.3.1-stable.1041.8f21313

View File

@ -11,13 +11,14 @@ main() {
fi fi
# Accumulate data to create unique machine id # Accumulate data to create unique machine id
local random_uuid=$(cat /proc/sys/kernel/random/uuid) local mac_addresses=$(cat /sys/class/net/*/address | uniq | sort)
local device_uuid=$(dmidecode | grep UUID)
# Ensure destination directory # Ensure destination directory
mkdir -p "$(dirname "$machine_id_file")" mkdir -p "$(dirname "$machine_id_file")"
# Generate SHA256 hash of data and save it to $machine_id_file # Generate SHA256 hash of data and save it to $machine_id_file
echo "$random_uuid" | sha256sum | cut -d ' ' -f1 > "$machine_id_file" echo "$mac_adresses $device_uuid" | sha256sum | cut -d ' ' -f1 > "$machine_id_file"
} }
main main