[ewg] [PATCH] ofed_1_3/ofed_scripts: Add vendor script pre/post hooks for OFED install/uninstall

Moni Shoua monisonlists at gmail.com
Mon Jan 7 23:28:24 PST 2008


> Applied.
> 
> Regards,
> Vladimir
> 

Thanks. Please apply the following addition to the patch.

This will allow the users to add lines to ofed.conf which will not be parsed by install.pl
and can be used by the vendor scripts. Such line should start with the string: "vendor_config"


diff --git a/install.pl b/install.pl
index 915530e..c1432f3 100755
--- a/install.pl
+++ b/install.pl
@@ -2049,6 +2049,11 @@ sub select_packages
                     next;
                 }
 
+
+		if (substr($package,0,length("vendor_config")) eq "vendor_config") {
+		       next;
+		}
+
                 if ($package eq "vendor_pre_install") {
 		    if ( -f $selected ) {
 			$vendor_pre_install = dirname($selected) . '/' . basename($selected);




More information about the ewg mailing list