summaryrefslogtreecommitdiffstats
path: root/core/modules/vmchooser2
diff options
context:
space:
mode:
authorJonathan Bauer2018-12-12 14:25:43 +0100
committerJonathan Bauer2018-12-12 14:25:43 +0100
commitfdb59f9f07edb362ed4a2186e38fe8a879e92fe6 (patch)
tree0b087b68e675f6ab337197c76c6ddf2a7b2ab6c4 /core/modules/vmchooser2
parent[run-virt] Download VM data as combined .tgz (diff)
downloadmltk-fdb59f9f07edb362ed4a2186e38fe8a879e92fe6.tar.gz
mltk-fdb59f9f07edb362ed4a2186e38fe8a879e92fe6.tar.xz
mltk-fdb59f9f07edb362ed4a2186e38fe8a879e92fe6.zip
[vmchooser] respect new urls params from resource_urls.conf
Diffstat (limited to 'core/modules/vmchooser2')
-rwxr-xr-xcore/modules/vmchooser2/data/opt/openslx/bin/vmchooser15
1 files changed, 11 insertions, 4 deletions
diff --git a/core/modules/vmchooser2/data/opt/openslx/bin/vmchooser b/core/modules/vmchooser2/data/opt/openslx/bin/vmchooser
index 0e73cabe..08da8bff 100755
--- a/core/modules/vmchooser2/data/opt/openslx/bin/vmchooser
+++ b/core/modules/vmchooser2/data/opt/openslx/bin/vmchooser
@@ -17,6 +17,14 @@ else
/opt/openslx/cups/printergui --error "$ERRMSG" || notify-send "Fehler" "$ERRMSG"
fi
+URLS_CONF="/opt/openslx/vmchooser/config/resource_urls.conf"
+if [ -s "$URLS_CONF" ]; then
+ . "$URLS_CONF"
+ [ -n "$url_list" ] && EXTRA="$EXTRA --url-list $url_list"
+ [ -n "$url_news" ] && EXTRA="$EXTRA --url-news $url_news"
+ [ -n "$url_help" ] && EXTRA="$EXTRA --url-help $url_help"
+fi
+
[ -s "/run/hwinfo" ] && . "/run/hwinfo"
if [ -z "$HW_MBRAM" ]; then
MEM=$(grep -m1 '^MemTotal:' /proc/meminfo | awk '{print $2}')
@@ -65,11 +73,10 @@ if /opt/openslx/lightdm/is-autologin-enabled && [ -s "/run/openslx/session-kille
fi
fi
-# No quotes around $EXTRA!
-if [ -z "$SLX_LOCATIONS" ]; then
- exec vmchooser.real "$@" --url "$URL" --fullscreen --tab "$TAB" --start-uuid "$SLX_EXAM_START" $EXTRA
+if [ -n "$SLX_LOCATIONS" ]; then
+ EXTRA="$EXTRA --locations $SLX_LOCATIONS"
fi
# No quotes around $EXTRA!
-exec vmchooser.real "$@" --url "$URL" --fullscreen --tab "$TAB" --start-uuid "$SLX_EXAM_START" --locations "$SLX_LOCATIONS" $EXTRA
+exec vmchooser.real "$@" --url "$URL" --fullscreen --tab "$TAB" --start-uuid "$SLX_EXAM_START" $EXTRA