summaryrefslogtreecommitdiffstats
path: root/remote/modules/vmchooser2/data/opt/openslx/scripts
diff options
context:
space:
mode:
authorSimon Rettberg2015-05-15 17:36:29 +0200
committerSimon Rettberg2015-05-15 17:36:29 +0200
commit9fff0a99fa0031c5b70a43b5eea93681ca0f70be (patch)
treec9ec0dcd587b003d3be63905245e68f102397465 /remote/modules/vmchooser2/data/opt/openslx/scripts
parentCompatibility improvements with ldadp and windows servers in mount scripts (diff)
parent[vbox] CAUTION: COMPATIBILITY BREAK to V3! virtualbox runs now, needs further (diff)
downloadtm-scripts-9fff0a99fa0031c5b70a43b5eea93681ca0f70be.tar.gz
tm-scripts-9fff0a99fa0031c5b70a43b5eea93681ca0f70be.tar.xz
tm-scripts-9fff0a99fa0031c5b70a43b5eea93681ca0f70be.zip
Merge branch 'master' of dnbd3:openslx-ng/tm-scripts
Diffstat (limited to 'remote/modules/vmchooser2/data/opt/openslx/scripts')
-rwxr-xr-xremote/modules/vmchooser2/data/opt/openslx/scripts/vmchooser-run_virt8
1 files changed, 8 insertions, 0 deletions
diff --git a/remote/modules/vmchooser2/data/opt/openslx/scripts/vmchooser-run_virt b/remote/modules/vmchooser2/data/opt/openslx/scripts/vmchooser-run_virt
index d41bf564..07f40e0f 100755
--- a/remote/modules/vmchooser2/data/opt/openslx/scripts/vmchooser-run_virt
+++ b/remote/modules/vmchooser2/data/opt/openslx/scripts/vmchooser-run_virt
@@ -531,6 +531,14 @@ cp "$xmlfile" "$VMCHOOSER_DIR/fd-loop/config.xml"
xrandr | grep -o -E 'connected\s*(primary)?\s*[0-9]+x[0-9]+\+0\+0' | grep -o -E '[0-9]+x[0-9]+' | head -n 1 > "$VMCHOOSER_DIR/fd-loop/hostres.txt"
# Add our magic openslx binary that sets the correct guest resolution
cp "$VMCHOOSER_DIR/data/openslx.exe" "$VMCHOOSER_DIR/fd-loop/"
+cp "$VMCHOOSER_DIR/data/SHARELWS.BAT" "$VMCHOOSER_DIR/fd-loop/"
+rm "$VMCHOOSER_DIR/fd-loop/SHARELW.CFG"
+for SHARE in $(grep -o -E '^SLX_SHARE_.*_PATH' /opt/openslx/config); do
+ eval "echo -n \$${SHARE} | /opt/openslx/bin/tr '/' '\' " >> "$VMCHOOSER_DIR/fd-loop/SHARELW.CFG"
+ eval echo -n " \$${SHARE%PATH}AUTH_PASS /user:\$${SHARE%PATH}AUTH_USER" >> "$VMCHOOSER_DIR/fd-loop/SHARELW.CFG"
+ echo -e '\r\n' >> "$VMCHOOSER_DIR/fd-loop/SHARELW.CFG"
+done
+
# Try to use dnbd3 to access the image
unset vm_diskfile