From 0c242f902935e2cca936e5012fd814448cb664b4 Mon Sep 17 00:00:00 2001 From: Martin Kepplinger Date: Mon, 7 May 2018 13:02:40 +0200 Subject: [PATCH] x230: prepare_internal_flashing.sh: ask wheather to flash directly --- x230/prepare_internal_flashing.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/x230/prepare_internal_flashing.sh b/x230/prepare_internal_flashing.sh index 8016a6c..4a2bb77 100755 --- a/x230/prepare_internal_flashing.sh +++ b/x230/prepare_internal_flashing.sh @@ -81,5 +81,13 @@ echo "" echo "prepared files for internal flashing in output directory." echo "template flashrom command (please adapt the chip name) :" echo "" -echo "cd output" +echo -e "${GREEN}cd output${NC}" echo -e "${GREEN}flashrom -p internal --layout x230-layout.txt --image bios -w ${OUTPUT_IMAGE_NAME}${NC}" +while true; do + read -p "Do you wish to run this now? y/N: " yn + case $yn in + [Yy]* ) cd output && flashrom -p internal --layout x230-layout.txt --image bios -w ${OUTPUT_IMAGE_NAME}; break;; + [Nn]* ) exit;; + * ) exit;; + esac +done