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