Compare commits
No commits in common. "develop" and "v2024.03.03-7315930" have entirely different histories.
develop
...
v2024.03.0
@ -1 +1 @@
|
|||||||
2024.3.13-stable.821.cec5c78
|
2024.3.3-stable.1740.7671872
|
||||||
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user