summaryrefslogtreecommitdiffstats
path: root/remote/modules
diff options
context:
space:
mode:
Diffstat (limited to 'remote/modules')
-rw-r--r--remote/modules/pvs2/data/opt/openslx/vmchooser/sessionstart.d/50-PVSclient17
1 files changed, 8 insertions, 9 deletions
diff --git a/remote/modules/pvs2/data/opt/openslx/vmchooser/sessionstart.d/50-PVSclient b/remote/modules/pvs2/data/opt/openslx/vmchooser/sessionstart.d/50-PVSclient
index 54ec439e..75ba0709 100644
--- a/remote/modules/pvs2/data/opt/openslx/vmchooser/sessionstart.d/50-PVSclient
+++ b/remote/modules/pvs2/data/opt/openslx/vmchooser/sessionstart.d/50-PVSclient
@@ -1,12 +1,11 @@
-#!/bin/bash
+#!/bin/ash
# If the ENV var PVS has been set by vmchooser start pvsclient
-if [ -n $PVS ]; then
- if [ $PVS = "true" ]; then
-# if [ -n $PVS_SESSIONID ]; then
-# pvsclient --session-id $PVS_SESSIONID
-# else
- pvsclient &
-# fi
- fi
+if [ -n "$PVS" -a "$PVS" = "true" ]; then
+ if [ -n "$PVS_SESSIONID" ]; then
+ pvsclient --session-id "$PVS_SESSIONID" &
+ else
+ pvsclient &
+ fi
fi
+