All pastes #1328348 Raw Edit

Open-VM-Tools patch for Ubuntu 8

public text v1 · immutable
#1328348 ·published 2009-02-05 20:55 UTC
rendered paste body
--- /usr/bin/vmware-config-tools.pl.old	2008-12-01 16:54:25.000000000 +0100
+++ /usr/bin/vmware-config-tools.pl	2008-12-01 16:55:59.000000000 +0100
@@ -4121,6 +4121,11 @@
     return 'no';
   }
 
+  if ($name eq 'vsock') {
+    print wrap("VMWare config patch VSOCK!\n");
+    system(shell_string($gHelper{'mv'}) . ' -vi ' . shell_string($build_dir . '/../Module.symvers') . ' ' . shell_string($build_dir . '/vsock-only/' ));
+  }
+
   print wrap('Building the ' . $name . ' module.' . "\n\n", 0);
   if (system(shell_string($gHelper{'make'}) . ' -C '
              . shell_string($build_dir . '/' . $name . '-only')
@@ -4143,6 +4148,12 @@
     if (try_module($name, $build_dir . '/' . $name . '.o', 0, 1)) {
       print wrap('The ' . $name . ' module loads perfectly into the running kernel.'
                  . "\n\n", 0);
+
+      if ($name eq 'vmci') {
+        print wrap("VMWare config patch VMCI!\n");
+        system(shell_string($gHelper{'cp'}) . ' -vi ' . shell_string($build_dir.'/vmci-only/Module.symvers') . ' ' . shell_string($build_dir . '/../'));
+      } 
+
       remove_tmp_dir($build_dir);
       return 'yes';
     }