summaryrefslogtreecommitdiffstats
path: root/remote/modules/pvs2/data/opt/openslx/vmchooser/sessionstart.d/50-PVSclient
diff options
context:
space:
mode:
Diffstat (limited to 'remote/modules/pvs2/data/opt/openslx/vmchooser/sessionstart.d/50-PVSclient')
-rw-r--r--remote/modules/pvs2/data/opt/openslx/vmchooser/sessionstart.d/50-PVSclient7
1 files changed, 3 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 1981736f..bef2449b 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,11 +1,10 @@
#!/bin/ash
# If the ENV var PVS has been set by vmchooser start pvsclient
-if [ -n "$PVS_START" -a "$PVS_START" == "yes" ]; then
- if [ -n "$PVS_SESSIONID" ]; then
- pvsclient "$PVS_SESSIONID" &
- else
+if [ -n "$PVS_AUTO_CONNECT" -a "$PVS_AUTO_CONNECT" == "TRUE" ]; then
pvsclient --auto &
+ else
+ pvsclient &
fi
fi