Update boot.sh

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

View file

@ -99,11 +99,12 @@ else
esac esac
fi fi
SM_BIOS="/run/shm/bios.bin"
rm -f "$SM_BIOS"
if ! dmidecode --dump-bin "$SM_BIOS" >/dev/null; then
SM_BIOS="" 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"
fi fi
return 0 return 0