Browse Source

x230: x230_skulls: ask to reboot after flashing

pull/36/head
Martin Kepplinger 6 years ago
parent
commit
0618e22e09
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      x230/x230_skulls.sh

+ 9
- 1
x230/x230_skulls.sh View File

@ -107,10 +107,18 @@ echo "0x00800000:0x00bfffff bios" >> ${OUTPUT_PATH}/${LAYOUT_FILENAME}
echo -e "${YELLOW}WARNING${NC}: Make sure not to power off your computer or interrupt this process in any way!"
echo -e " Interrupting this process may result in irreparable damage to your computer!"
while true; do
read -r -p "Do you wish to flash the BIOS now? y/N: " yn
read -r -p "Flash the BIOS now? y/N: " yn
case $yn in
[Yy]* ) cd output && flashrom -p internal --layout ${LAYOUT_FILENAME} --image bios -w "${OUTPUT_IMAGE_NAME}"; break;;
[Nn]* ) exit;;
* ) exit;;
esac
done
while true; do
read -r -p "Reboot now? (please do!) y/N: " yn
case $yn in
[Yy]* ) reboot ;;
[Nn]* ) exit;;
* ) exit;;
esac
done

Loading…
Cancel
Save