From 00406b5b31e64ab0e03f1e16a9c2f2c9d4c3bc7d Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 18 Dec 2012 12:49:39 +0100 Subject: fixup rescue mode --- bin/g-i-installation.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'bin/g-i-installation.sh') 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 ;; *) ;; -- cgit v1.2.3-70-g09d2