Update boot.sh

This commit is contained in:
Kroese 2025-03-27 01:01:07 +01:00 committed by GitHub
parent 0ac4083cef
commit f052f94ac5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -100,6 +100,9 @@ else
fi fi
SM_BIOS="" SM_BIOS=""
if [ -s "/sys/class/dmi/id/product_serial" ]; then
BIOS_SERIAL=$(</sys/class/dmi/id/product_serial) BIOS_SERIAL=$(</sys/class/dmi/id/product_serial)
BIOS_SERIAL="${BIOS_SERIAL//[![:alnum:]]/}" BIOS_SERIAL="${BIOS_SERIAL//[![:alnum:]]/}"
@ -107,4 +110,6 @@ if [ -n "$BIOS_SERIAL" ]; then
SM_BIOS="-smbios type=1,serial=$BIOS_SERIAL" SM_BIOS="-smbios type=1,serial=$BIOS_SERIAL"
fi fi
fi
return 0 return 0