From 67d156eae5534840fb0e0f918570878a5ce18724 Mon Sep 17 00:00:00 2001 From: Sebastian Schmelzer Date: Thu, 21 Jul 2011 16:03:35 +0200 Subject: dynamic mac for vmchooser // fix awk, tr error in runvirt --- src/os-plugins/plugins/vmchooser/files/run-virt.sh | 2 +- src/os-plugins/plugins/vmware/files/run-virt.include | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/os-plugins/plugins/vmchooser/files/run-virt.sh b/src/os-plugins/plugins/vmchooser/files/run-virt.sh index d62a13ae..e89affeb 100644 --- a/src/os-plugins/plugins/vmchooser/files/run-virt.sh +++ b/src/os-plugins/plugins/vmchooser/files/run-virt.sh @@ -344,7 +344,7 @@ yres=$(echo "${hostres}" | awk '{print $7}') # Resolution defined via xml parameter: fullscreen, full/X*Y/depth; windowed, # win/X*Y/depth -userres=$(grep -io '${vmhome}/preferences # 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) +fi # temporary disk space for logs, etc... redodir=/tmp/vmware/${USER}.$$ # dir for configs and vmem file -- cgit v1.2.3-55-g7522