summaryrefslogtreecommitdiffstats
path: root/remote/modules/vmchooser2
diff options
context:
space:
mode:
authorJonathan Bauer2015-04-10 18:20:55 +0200
committerJonathan Bauer2015-04-10 18:20:55 +0200
commitf282fad2b87faf8c7fafb4c3d25cfc69f32f9cac (patch)
treecff77b6dbc058ac1a968bf138b054a947aa79313 /remote/modules/vmchooser2
parent[vmchooser2] TESTING: run_virt generates SHARELW.CFG in B: with share informa... (diff)
downloadtm-scripts-f282fad2b87faf8c7fafb4c3d25cfc69f32f9cac.tar.gz
tm-scripts-f282fad2b87faf8c7fafb4c3d25cfc69f32f9cac.tar.xz
tm-scripts-f282fad2b87faf8c7fafb4c3d25cfc69f32f9cac.zip
[vmchooser2] generate sharelw.cfg file [wip]
Diffstat (limited to 'remote/modules/vmchooser2')
-rwxr-xr-xremote/modules/vmchooser2/data/opt/openslx/scripts/vmchooser-run_virt4
1 files changed, 3 insertions, 1 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 4af1ad29..955b9069 100755
--- a/remote/modules/vmchooser2/data/opt/openslx/scripts/vmchooser-run_virt
+++ b/remote/modules/vmchooser2/data/opt/openslx/scripts/vmchooser-run_virt
@@ -531,8 +531,10 @@ 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/"
+rm "$VMCHOOSER_DIR/fd-loop/SHARELW.CFG"
for SHARE in $(grep -o -E '^SLX_SHARE_.*_PATH' /opt/openslx/config); do
- eval echo -n "\$${SHARE} \$${SHARE%PATH}PERM" >> "$VMCHOOSER_DIR/fd-loop/SHARELW.CFG"
+ 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