[X2Go-Commits] [live-build-x2go] 22/29: yet another attempt at getting the power button to work

git-admin at x2go.org git-admin at x2go.org
Tue Dec 13 19:39:38 CET 2016


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch feature/mini
in repository live-build-x2go.

commit 2dd04b95d2f88bc48d4d4748044f81d8a0a2890c
Author: Stefan Baur (BAUR-ITCS) <kontakt at baur-itcs.de>
Date:   Wed Jun 22 10:56:03 2016 +0200

    yet another attempt at getting the power button to work
---
 .../lib/live/config/2700-x2go-powerbuttonmonitor   |   12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/config/includes.chroot/lib/live/config/2700-x2go-powerbuttonmonitor b/config/includes.chroot/lib/live/config/2700-x2go-powerbuttonmonitor
index 64438d5..b5e24fc 100755
--- a/config/includes.chroot/lib/live/config/2700-x2go-powerbuttonmonitor
+++ b/config/includes.chroot/lib/live/config/2700-x2go-powerbuttonmonitor
@@ -7,15 +7,9 @@ X2GoPowerbuttonMonitor ()
 echo -n " x2go-powerbuttonmonitor"
 
 # Spawn Powerbutton-Monitor
-(
-        rm -f /home/user/.halt
-        inotifywait -mrq -e create /home/user/ | grep -q  "CREATE .halt" && (
-                killall X ;
-                poweroff ;
-                chvt 7
-        )
-) &
-
+# FIXME tut nur manuell gestartet, warum? dash? nohup? /home/user noch gar nicht da?
+#/bin/bash -c '( while ((! [ -d /home/user ] ) && ps -C x2goclient --no-header); do sleep 1 ; done ; rm -f /home/user/.halt ; inotifywait -qm -e create /home/user/ | while grep -q "CREATE .halt" ; do poweroff ; chvt 7 ; done ) &'
+/bin/bash -c '(while ! [ -f /home/user/.halt ] ; do sleep 1 ; done ; poweroff ; chvt 7) &'
 }
 
 X2GoPowerbuttonMonitor

--
Alioth's /srv/git/code.x2go.org/live-build-x2go.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git


More information about the x2go-commits mailing list