Update boot.sh
This commit is contained in:
parent
0ac4083cef
commit
f052f94ac5
1 changed files with 9 additions and 4 deletions
13
src/boot.sh
13
src/boot.sh
|
@ -100,11 +100,16 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SM_BIOS=""
|
SM_BIOS=""
|
||||||
BIOS_SERIAL=$(</sys/class/dmi/id/product_serial)
|
|
||||||
BIOS_SERIAL="${BIOS_SERIAL//[![:alnum:]]/}"
|
|
||||||
|
|
||||||
if [ -n "$BIOS_SERIAL" ]; then
|
if [ -s "/sys/class/dmi/id/product_serial" ]; then
|
||||||
SM_BIOS="-smbios type=1,serial=$BIOS_SERIAL"
|
|
||||||
|
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
|
fi
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
Loading…
Reference in a new issue