mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-19 04:57:55 +00:00
23 lines
350 B
Bash
Executable File
23 lines
350 B
Bash
Executable File
#!/bin/sh
|
|
. /etc/functions
|
|
|
|
ROM="$1"
|
|
if [ -z "$1" ]; then
|
|
die "Usage: $0 /media/x230.rom"
|
|
fi
|
|
|
|
cp "$ROM" /tmp/x230.rom
|
|
sha256sum /tmp/x230.rom
|
|
|
|
flashrom \
|
|
--force \
|
|
--noverify \
|
|
--programmer internal \
|
|
--layout /etc/x230-layout.txt \
|
|
--image BIOS \
|
|
-w /tmp/x230.rom \
|
|
|| die "$ROM: Flash failed"
|
|
|
|
warn "Reboot and hopefully it works..."
|
|
exit 0
|