summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--remote/modules/pvs2/data/opt/openslx/vmchooser/sessionstart.d/50-PVSclient10
1 files changed, 6 insertions, 4 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 b33889df..1981736f 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,9 +1,11 @@
#!/bin/ash
# If the ENV var PVS has been set by vmchooser start pvsclient
-if [ -n "$PVS_SESSIONID" ]; then
- pvsclient --session-id "$PVS_SESSIONID" &
-else
- pvsclient &
+if [ -n "$PVS_START" -a "$PVS_START" == "yes" ]; then
+ if [ -n "$PVS_SESSIONID" ]; then
+ pvsclient "$PVS_SESSIONID" &
+ else
+ pvsclient --auto &
+ fi
fi