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,11 +100,16 @@ else
fi
SM_BIOS=""
BIOS_SERIAL=$(</sys/class/dmi/id/product_serial)
BIOS_SERIAL="${BIOS_SERIAL//[![:alnum:]]/}"
if [ -n "$BIOS_SERIAL" ]; then
SM_BIOS="-smbios type=1,serial=$BIOS_SERIAL"
if [ -s "/sys/class/dmi/id/product_serial" ]; then
BIOS_SERIAL=$(</sys/class/dmi/id/product_serial)
BIOS_SERIAL="${BIOS_SERIAL//[![:alnum:]]/}"
if [ -n "$BIOS_SERIAL" ]; then
SM_BIOS="-smbios type=1,serial=$BIOS_SERIAL"
fi
fi
return 0