diff options
| author | Simon Rettberg | 2015-09-15 16:59:21 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2015-09-15 16:59:21 +0200 |
| commit | bc7a5a7d82f8ba7ab4d1a98544b359a75c62e4e6 (patch) | |
| tree | 0a59976259973ffeeb30edfbf01cce01dbf41756 | |
| parent | [binutil] Try harder not to be stupid (whats broken this time?) (diff) | |
| download | tm-scripts-bc7a5a7d82f8ba7ab4d1a98544b359a75c62e4e6.tar.gz tm-scripts-bc7a5a7d82f8ba7ab4d1a98544b359a75c62e4e6.tar.xz tm-scripts-bc7a5a7d82f8ba7ab4d1a98544b359a75c62e4e6.zip | |
[vmware] Downgrade hw version on new path if vmx is too new
| -rw-r--r-- | remote/modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include | 7 |
1 files changed, 7 insertions, 0 deletions
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 4bf53545..a823df72 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 @@ -55,6 +55,13 @@ else fi +# $maxhardwareversion + +HWVER=$(grep -i '^virtualHW.version *= *' "$conffile" | head -n 1 | awk -F '=' '{print $2}' | sed -r 's/[^0-9]//g') +if [ -n "$HWVER" ] && [ "$HWVER" -gt "$maxhardwareversion" ]; then + sed -i 's/^virtualHW\.version.*$/virtualHW.version = "'$maxhardwareversion'"/I' "$conffile" +fi + # For debugging cp "$conffile" "/tmp/vmware-last-config" |
