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/vmware/files/run-virt.include | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/os-plugins/plugins/vmware/files/run-virt.include') diff --git a/src/os-plugins/plugins/vmware/files/run-virt.include b/src/os-plugins/plugins/vmware/files/run-virt.include index 64b72f17..8595beb1 100644 --- a/src/os-plugins/plugins/vmware/files/run-virt.include +++ b/src/os-plugins/plugins/vmware/files/run-virt.include @@ -229,6 +229,11 @@ pref.eula.1.buildNumber = \"${vmbuild}\"" >${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