diff options
author | Simon Rettberg | 2013-12-13 16:26:53 +0100 |
---|---|---|
committer | Simon Rettberg | 2013-12-13 16:26:53 +0100 |
commit | e8f98ce4198f1234b022147931087df5bcfea821 (patch) | |
tree | 9b62d2baa8824a7eab2c6979001bcbe25e747383 /remote/modules/vmchooser | |
parent | [beamergui] wrapper for beamergui-mode_setter (diff) | |
download | tm-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')
-rwxr-xr-x | remote/modules/vmchooser/data/opt/openslx/vmchooser/sessionstart | 10 | ||||
-rw-r--r-- | remote/modules/vmchooser/vmchooser.build | 1 |
2 files changed, 10 insertions, 1 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 + diff --git a/remote/modules/vmchooser/vmchooser.build b/remote/modules/vmchooser/vmchooser.build index 58f5986e..eb0a2d48 100644 --- a/remote/modules/vmchooser/vmchooser.build +++ b/remote/modules/vmchooser/vmchooser.build @@ -1,4 +1,3 @@ -#!/bin/bash fetch_source() { git clone "${REQUIRED_GIT}" src |