summaryrefslogtreecommitdiffstats
path: root/remote/modules/vmchooser/data
diff options
context:
space:
mode:
authorSimon Rettberg2013-12-13 16:26:53 +0100
committerSimon Rettberg2013-12-13 16:26:53 +0100
commite8f98ce4198f1234b022147931087df5bcfea821 (patch)
tree9b62d2baa8824a7eab2c6979001bcbe25e747383 /remote/modules/vmchooser/data
parent[beamergui] wrapper for beamergui-mode_setter (diff)
downloadtm-scripts-e8f98ce4198f1234b022147931087df5bcfea821.tar.gz
tm-scripts-e8f98ce4198f1234b022147931087df5bcfea821.tar.xz
tm-scripts-e8f98ce4198f1234b022147931087df5bcfea821.zip
[vmchooser] Add sessionstart script that will source everything in sessionstart.d
Needed for beamergui. This is pretty much the same as Xsession with Xsession.d, since the vmchooser is technically the session, but we might want to run things when the actual session selected in the vmchooser starts.
Diffstat (limited to 'remote/modules/vmchooser/data')
-rwxr-xr-xremote/modules/vmchooser/data/opt/openslx/vmchooser/sessionstart10
1 files changed, 10 insertions, 0 deletions
diff --git a/remote/modules/vmchooser/data/opt/openslx/vmchooser/sessionstart b/remote/modules/vmchooser/data/opt/openslx/vmchooser/sessionstart
new file mode 100755
index 00000000..aa7e54c6
--- /dev/null
+++ b/remote/modules/vmchooser/data/opt/openslx/vmchooser/sessionstart
@@ -0,0 +1,10 @@
+#!/bin/ash
+
+SOURCEPATH="/opt/openslx/vmchooser/sessionstart.d"
+
+if [ -d "$SOURCEPATH" ]; then
+ for file in $SOURCEPATH/*; do
+ . "$file" || slxlog "vmchooser-sessionstart" "Could not source $file at session start!" "$file"
+ done
+fi
+