summaryrefslogtreecommitdiffstats
path: root/core/modules/vmchooser/data/opt/openslx/vmchooser/sessionstart
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/vmchooser/data/opt/openslx/vmchooser/sessionstart')
-rwxr-xr-xcore/modules/vmchooser/data/opt/openslx/vmchooser/sessionstart12
1 files changed, 12 insertions, 0 deletions
diff --git a/core/modules/vmchooser/data/opt/openslx/vmchooser/sessionstart b/core/modules/vmchooser/data/opt/openslx/vmchooser/sessionstart
new file mode 100755
index 00000000..be3235c1
--- /dev/null
+++ b/core/modules/vmchooser/data/opt/openslx/vmchooser/sessionstart
@@ -0,0 +1,12 @@
+#!/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
+
+exit 0
+