Update boot.sh
This commit is contained in:
parent
b087a5082a
commit
0ac4083cef
1 changed files with 5 additions and 4 deletions
|
@ -99,11 +99,12 @@ else
|
|||
esac
|
||||
fi
|
||||
|
||||
SM_BIOS="/run/shm/bios.bin"
|
||||
rm -f "$SM_BIOS"
|
||||
SM_BIOS=""
|
||||
BIOS_SERIAL=$(</sys/class/dmi/id/product_serial)
|
||||
BIOS_SERIAL="${BIOS_SERIAL//[![:alnum:]]/}"
|
||||
|
||||
if ! dmidecode --dump-bin "$SM_BIOS" >/dev/null; then
|
||||
SM_BIOS=""
|
||||
if [ -n "$BIOS_SERIAL" ]; then
|
||||
SM_BIOS="-smbios type=1,serial=$BIOS_SERIAL"
|
||||
fi
|
||||
|
||||
return 0
|
||||
|
|
Loading…
Reference in a new issue