summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2012-12-22 13:44:23 +0100
committerHolger Levsen <holger@layer-acht.org>2012-12-22 13:44:23 +0100
commit0859491a55b64951c42581aa0f312383cd284fbe (patch)
tree5af1b398cb9fb623d14b0e9b455c78a74f684877
parent268003f88395a34cb741e3b557271979493d4f9c (diff)
downloadjenkins.debian.net-0859491a55b64951c42581aa0f312383cd284fbe.tar.xz
add lxde depending actions
-rwxr-xr-xbin/g-i-installation.sh35
1 files changed, 29 insertions, 6 deletions
diff --git a/bin/g-i-installation.sh b/bin/g-i-installation.sh
index 97978f56..866e02f4 100755
--- a/bin/g-i-installation.sh
+++ b/bin/g-i-installation.sh
@@ -211,6 +211,9 @@ normal_action() {
# normal boot after installation
let MY_NR=NR-TRIGGER_NR
TOKEN=$(printf "%03d" $MY_NR)
+ #
+ # common for all types of install
+ #
case $TOKEN in
050) do_and_report type jenkins
;;
@@ -220,14 +223,34 @@ normal_action() {
;;
080) do_and_report key enter
;;
- 100) case $NAME in
- *lxde*) do_and_report key enter
- ;;
- *) ;;
- esac
- ;;
*) ;;
esac
+ #
+ # actions depending on the type of installation
+ #
+ case $NAME in
+ *lxde*) case $TOKEN in
+ 100) do_and_report key enter
+ ;;
+ 120) do_and_report key alt-f2
+ ;;
+ 130) do_and_report type lxterminal
+ ;;
+ 140) do_and_report key enter
+ ;;
+ 150) do_and_report type "su -c poweroff"
+ ;;
+ 160) do_and_report key enter
+ ;;
+ 170) do_and_report type r00tme
+ ;;
+ 180) do_and_report key enter
+ ;;
+ *) ;;
+ esac
+ ;;
+ *) ;;
+ esac
}