Compare commits
No commits in common. "develop" and "v2024.03.04-af6c9cf" have entirely different histories.
develop
...
v2024.03.0
@ -1 +1 @@
|
||||
2024.3.13-stable.821.cec5c78
|
||||
2024.3.4-stable.809.4a1a434
|
||||
|
@ -11,13 +11,14 @@ main() {
|
||||
fi
|
||||
|
||||
# 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
|
||||
mkdir -p "$(dirname "$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
|
Loading…
x
Reference in New Issue
Block a user