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
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SM_BIOS="/run/shm/bios.bin"
|
SM_BIOS=""
|
||||||
rm -f "$SM_BIOS"
|
BIOS_SERIAL=$(</sys/class/dmi/id/product_serial)
|
||||||
|
BIOS_SERIAL="${BIOS_SERIAL//[![:alnum:]]/}"
|
||||||
|
|
||||||
if ! dmidecode --dump-bin "$SM_BIOS" >/dev/null; then
|
if [ -n "$BIOS_SERIAL" ]; then
|
||||||
SM_BIOS=""
|
SM_BIOS="-smbios type=1,serial=$BIOS_SERIAL"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
Loading…
Reference in a new issue