Browse Source

x230: prepare_internal_flashing.sh: ask wheather to flash directly

pull/35/head
Martin Kepplinger 6 years ago
parent
commit
0c242f9029
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      x230/prepare_internal_flashing.sh

+ 9
- 1
x230/prepare_internal_flashing.sh View File

@ -81,5 +81,13 @@ echo ""
echo "prepared files for internal flashing in output directory." echo "prepared files for internal flashing in output directory."
echo "template flashrom command (please adapt the chip name) :" echo "template flashrom command (please adapt the chip name) :"
echo "" 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}" 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

Loading…
Cancel
Save