summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/g-i-installation.sh38
1 files changed, 36 insertions, 2 deletions
diff --git a/bin/g-i-installation.sh b/bin/g-i-installation.sh
index e597e20e..0abdf9af 100755
--- a/bin/g-i-installation.sh
+++ b/bin/g-i-installation.sh
@@ -181,14 +181,46 @@ do_and_report() {
}
rescue_action() {
+ # boot in rescure mode
case $NR in
- 700) do_and_report key tab
+ 660) do_and_report key tab
;;
- 710) do_and_report key enter
+ 670) do_and_report key enter
+ ;;
+ 710) do_and_report key tab
+ ;;
+ 720) do_and_report key enter
+ ;;
+ 770) do_and_report type df
+ ;;
+ 780) do_and_report key enter
+ ;;
+ 810) do_and_report type exit
+ ;;
+ 820) do_and_report key enter
+ ;;
+ 910) do_and_report key down
+ ;;
+ 920) do_and_report key enter
+ ;;
+ esac
+}
+
+normal_action() {
+ # normal boot after installation
+ case $NR in
+ 710) do_and_report type jenkins
+ ;;
+ 720) do_and_report key enter
+ ;;
+ 730) do_and_report type insecure
+ ;;
+ 740) do_and_report key enter
;;
esac
}
+
monitor_system() {
MODE=$1
cd $RESULTS
@@ -226,6 +258,8 @@ monitor_system() {
case $MODE in
rescue) rescue_action
;;
+ normal) normal_action
+ ;;
*) ;;
esac
# test if this screenshot is the same as the one 400 screenshots ago, and if so, let stop this