op_osupgrade: add some sanity checks
[openpandora.oe.git] / recipes / pandora-system / pandora-scripts / op_calibrate.sh
index 1556e7f..0999028 100755 (executable)
@@ -1,3 +1,7 @@
 #!/bin/bash
 TSLIB_CONSOLEDEVICE=none op_runfbapp ts_calibrate
-zenity --info --title="Calibration" --text "The touchscreen has been calibrated. To activate the new values, you have to restart."
\ No newline at end of file
+sudo /usr/pandora/scripts/op_touchinit.sh
+while ! zenity --question --title="Check Calibration" --text="Your new calibration setting has been applied.\n\nPlease check if the touchscreen is now working properly.\nIf not, you might want to try a recalibration.\n\n(Hint: use the nubs to press the button if the touchscreen is way off)" --ok-label="The touchscreen is fine" --cancel-label="Recalibrate"; do
+      TSLIB_CONSOLEDEVICE=none op_runfbapp ts_calibrate
+      sudo /usr/pandora/scripts/op_touchinit.sh  
+done
\ No newline at end of file