summaryrefslogtreecommitdiffstats
path: root/core/modules/vmware16
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/vmware16')
-rw-r--r--core/modules/vmware16/module.build5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/modules/vmware16/module.build b/core/modules/vmware16/module.build
index c6626de0..96045023 100644
--- a/core/modules/vmware16/module.build
+++ b/core/modules/vmware16/module.build
@@ -183,6 +183,11 @@ build() {
# /usr/lib/vmware-ovftool/vmware.eula
# If it cannot open these files (as we deleted them) it will crash with a SIGABRT (signal 6)
# coming from an uncaught exeception in libglibmm's file_get_contents
+ # Patch vmware-vmx to always enable USB autoconnect for VMs
+ if [[ "${OFFICIAL_VERSION}" = 16.2.* ]]; then
+ gcc -o "${MODULE_WORK_DIR}/patsch" "${MODULE_DIR}/usb-patch.c" || perror "USB patscher build failed"
+ "${MODULE_WORK_DIR}/patsch" "${MODULE_BUILD_DIR}/usr/lib/vmware/bin/vmware-vmx" || perror "Patsching vmware-vmx failed"
+ fi
}
post_copy() {