summaryrefslogtreecommitdiffstats
path: root/remote/modules/vmware/data/opt
diff options
context:
space:
mode:
authorSimon Rettberg2016-01-07 16:19:27 +0100
committerSimon Rettberg2016-01-07 16:19:27 +0100
commit3467aef515acaac01760c3e92cc3db09dc474d96 (patch)
tree7085c113d6c35079d804728e0399f83846275d97 /remote/modules/vmware/data/opt
parent[beamergui,udhcpc] Don't create pointless files in /tmp (diff)
downloadtm-scripts-3467aef515acaac01760c3e92cc3db09dc474d96.tar.gz
tm-scripts-3467aef515acaac01760c3e92cc3db09dc474d96.tar.xz
tm-scripts-3467aef515acaac01760c3e92cc3db09dc474d96.zip
[run-virt,vmware,vbox] Unify directory layout in /tmp, better cleanup
Diffstat (limited to 'remote/modules/vmware/data/opt')
-rw-r--r--remote/modules/vmware/data/opt/openslx/vmchooser/vmware/includes/set_vmware_include_variables.inc11
-rw-r--r--remote/modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include1
2 files changed, 0 insertions, 12 deletions
diff --git a/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/includes/set_vmware_include_variables.inc b/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/includes/set_vmware_include_variables.inc
index 5a5d1132..0c45ee59 100644
--- a/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/includes/set_vmware_include_variables.inc
+++ b/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/includes/set_vmware_include_variables.inc
@@ -5,17 +5,6 @@
set_vmware_include_variables() {
[ "$mem" -gt 3800 -a "$(uname -m)" != "x86_64" ] && mem=3800
- # VM-ID static (0D), remove if changed to 00
- VM_ID="0D"
-
- # should be dynamic
- if [ "x$(which bc)" != "x" ]; then
- VM_ID=$(echo "obase=16; $$" | bc)
- VM_ID=$(expr substr $VM_ID $(expr ${#VM_ID} - 1) 2)
- else
- VM_ID=$[ $$ % 100 ]
- fi
-
# temporary disk space for logs, etc...
redodir="/tmp/virt/vmware/${USER}.$$"
diff --git a/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include b/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include
index a823df72..f63092bd 100644
--- a/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include
+++ b/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include
@@ -68,5 +68,4 @@ cp "$conffile" "/tmp/vmware-last-config"
# using the modified version of the wrapper script
VIRTCMD="/opt/openslx/bin/vmplayer"
VIRTCMDOPTS="${vmopt} ${conffile}"
-RMDIRS="${redodir} ${conffile}"