[X2Go-Commits] [live-build-x2go] 12/29: This is a background task to monitor the halt button displayed in x2goclient with --haltbt

git-admin at x2go.org git-admin at x2go.org
Tue Dec 13 19:48:57 CET 2016


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

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

commit e29873d2d131274348175ac7a1dea03117452ee9
Author: Stefan Baur (BAUR-ITCS) <kontakt at baur-itcs.de>
Date:   Tue Jun 21 19:00:51 2016 +0200

    This is a background task to monitor the halt button displayed in x2goclient with --haltbt
---
 .../lib/live/config/2700-x2go-powerbuttonmonitor   |   21 ++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/config/includes.chroot/lib/live/config/2700-x2go-powerbuttonmonitor b/config/includes.chroot/lib/live/config/2700-x2go-powerbuttonmonitor
new file mode 100644
index 0000000..64438d5
--- /dev/null
+++ b/config/includes.chroot/lib/live/config/2700-x2go-powerbuttonmonitor
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+X2GoPowerbuttonMonitor ()
+{
+# Output startup message
+#
+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
+        )
+) &
+
+}
+
+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