From 4da7e6be7ce685f4acb46c2ecb787d8e5aaf4d4a Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 1 Feb 2023 10:31:05 -0500 Subject: [PATCH] Update haos-vm-v5.sh revert --- vm/haos-vm-v5.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/haos-vm-v5.sh b/vm/haos-vm-v5.sh index 0f2cb0b6..2f41df72 100644 --- a/vm/haos-vm-v5.sh +++ b/vm/haos-vm-v5.sh @@ -12,7 +12,7 @@ EOF clear header_info echo -e "\n Loading..." -GEN_MAC=$(openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//' | tr '[:lower:]' '[:upper:]') +GEN_MAC=$(echo 'AE 1A 60'$(od -An -N3 -t xC /dev/urandom) | sed -e 's/ /:/g' | tr '[:lower:]' '[:upper:]') USEDID=$(pvesh get /cluster/resources --type vm --output-format yaml | egrep -i 'vmid' | awk '{print substr($2, 1, length($2)-0) }') NEXTID=$(pvesh get /cluster/nextid) STABLE=$(curl -s https://raw.githubusercontent.com/home-assistant/version/master/stable.json | grep "ova" | awk '{print substr($2, 2, length($2)-3) }')