summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2012-12-18 12:49:39 +0100
committerHolger Levsen <holger@layer-acht.org>2012-12-18 12:49:39 +0100
commit00406b5b31e64ab0e03f1e16a9c2f2c9d4c3bc7d (patch)
treedc0388ed871b8c66aaaaf486ff6b19c7e60c4309
parent05135528a23a6f90d2374a923632cec6223d236c (diff)
downloadjenkins.debian.net-00406b5b31e64ab0e03f1e16a9c2f2c9d4c3bc7d.tar.xz
fixup rescue mode
-rwxr-xr-xbin/g-i-installation.sh14
1 files changed, 9 insertions, 5 deletions
diff --git a/bin/g-i-installation.sh b/bin/g-i-installation.sh
index a5aee501..e597e20e 100755
--- a/bin/g-i-installation.sh
+++ b/bin/g-i-installation.sh
@@ -174,13 +174,17 @@ backup_screenshot() {
cp snapshot_${PRINTF_NR}.ppm snapshot_${PRINTF_NR}.ppm.bak
}
+do_and_report() {
+ vncdo -s $DISPLAY $1 $2
+ echo "Sending $1 $2"
+ backup_screenshot
+}
+
rescue_action() {
case $NR in
- 700) vncdo -s $DISPLAY key tab
- backup_screenshot
+ 700) do_and_report key tab
;;
- 710) vncdo -s $DISPLAY key enter
- backup_screenshot
+ 710) do_and_report key enter
;;
esac
}
@@ -219,7 +223,7 @@ monitor_system() {
backup_screenshot
fi
# let's drive this further
- case $TYPE in
+ case $MODE in
rescue) rescue_action
;;
*) ;;