summaryrefslogtreecommitdiffstats
path: root/lenovobios_secondflash
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2014-11-09 05:23:19 (EST)
committer Francis Rowe <info@gluglug.org.uk>2014-11-09 05:23:19 (EST)
commit3057ec9bd61f7bb49086e5543fbebf919be42f18 (patch)
treeefe2f3c353ccce69f504bc0a94d9df34bc33016c /lenovobios_secondflash
parent3fad9ac160f1ce9ff0148f9f7f89184bf943ccc1 (diff)
downloadlibreboot-3057ec9bd61f7bb49086e5543fbebf919be42f18.zip
libreboot-3057ec9bd61f7bb49086e5543fbebf919be42f18.tar.gz
libreboot-3057ec9bd61f7bb49086e5543fbebf919be42f18.tar.bz2
lenovobios_secondflash: Warn if BUCTS is not present.
Diffstat (limited to 'lenovobios_secondflash')
-rwxr-xr-xlenovobios_secondflash9
1 files changed, 7 insertions, 2 deletions
diff --git a/lenovobios_secondflash b/lenovobios_secondflash
index 47b034c..386f2c3 100755
--- a/lenovobios_secondflash
+++ b/lenovobios_secondflash
@@ -42,5 +42,10 @@ fi
./flashrom/flashrom -p internal -w $1
# Advised. Reset back to 0.
-./bucts/bucts 0
-
+{ # try
+ ./bucts/bucts 0
+} || { # catch
+ echo "WARNING: bucts not found, but if the image was flashed then it's probably safe."
+ echo "A dd'd image (like libreboot's images) flashed with bucts=1 is ok. If the image is not dd'd and bucts=1,"
+ echo "then you should run ./bucts 0 now, or remove the yellow cmos/nvram battery for a minute."
+}