From 0859491a55b64951c42581aa0f312383cd284fbe Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sat, 22 Dec 2012 13:44:23 +0100 Subject: add lxde depending actions --- bin/g-i-installation.sh | 35 +++++++++++++++++++++++++++++------ 1 file changed, 29 insertions(+), 6 deletions(-) (limited to 'bin/g-i-installation.sh') 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 } -- cgit v1.2.3-54-g00ecf