aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2014-11-09 10:23:19 +0000
committerFrancis Rowe <info@gluglug.org.uk>2014-11-09 10:23:19 +0000
commit3057ec9bd61f7bb49086e5543fbebf919be42f18 (patch)
treeefe2f3c353ccce69f504bc0a94d9df34bc33016c
parent3fad9ac160f1ce9ff0148f9f7f89184bf943ccc1 (diff)
downloadlibrebootfr-3057ec9bd61f7bb49086e5543fbebf919be42f18.tar.gz
librebootfr-3057ec9bd61f7bb49086e5543fbebf919be42f18.zip
lenovobios_secondflash: Warn if BUCTS is not present.
-rwxr-xr-xlenovobios_secondflash9
1 files changed, 7 insertions, 2 deletions
diff --git a/lenovobios_secondflash b/lenovobios_secondflash
index 47b034c4..386f2c3e 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."
+}