summaryrefslogtreecommitdiffstats
path: root/core/modules/vmchooser2
diff options
context:
space:
mode:
authorSimon Rettberg2019-11-18 16:29:19 +0100
committerSimon Rettberg2019-11-18 16:29:19 +0100
commit0de82592dddce2f734f30b6b7d92eff2ee289089 (patch)
tree6dde39ec0c72acddc96067a138746619edc692fc /core/modules/vmchooser2
parent[xscreensaver/idleaction] Let xscreensaver manage standby again... (diff)
downloadmltk-0de82592dddce2f734f30b6b7d92eff2ee289089.tar.gz
mltk-0de82592dddce2f734f30b6b7d92eff2ee289089.tar.xz
mltk-0de82592dddce2f734f30b6b7d92eff2ee289089.zip
[vmchooser2] Pre-select PVS if running on tutor machine
Diffstat (limited to 'core/modules/vmchooser2')
-rwxr-xr-xcore/modules/vmchooser2/data/opt/openslx/bin/vmchooser4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/modules/vmchooser2/data/opt/openslx/bin/vmchooser b/core/modules/vmchooser2/data/opt/openslx/bin/vmchooser
index f9b4ad3a..a07fa143 100755
--- a/core/modules/vmchooser2/data/opt/openslx/bin/vmchooser
+++ b/core/modules/vmchooser2/data/opt/openslx/bin/vmchooser
@@ -54,6 +54,10 @@ fi
if [ -z "$SLX_NO_PVS" ]; then
EXTRA="$EXTRA --pvs"
if [ "x$SLX_PVS_DEFAULT" = "xON" ] || [ "x$SLX_PVS_HYBRID" = "xyes" ]; then
+ # Config option says checked by default, or this is hybrid manager
+ EXTRA="$EXTRA --pvs-checked"
+ elif grep -q -F -x -e "tutorIP=$SLX_PXE_CLIENT_IP" -e "tutorIP=$SLX_DHCP_CLIENT_IP" "/opt/openslx/pvs2/pvs2.ini"; then
+ # This IP is a tutor, also autoconnect
EXTRA="$EXTRA --pvs-checked"
fi
fi