From 04c7e43e2d778b72e6840ece1b9c733c52ce3fc0 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Tue, 26 Aug 2014 16:47:09 +0200 Subject: [pvs2-fr] fix startup sessionscript for pvs --- .../data/opt/openslx/vmchooser/sessionstart.d/50-PVSclient | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'remote/modules') 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 -- cgit v1.2.3-55-g7522