[ewg] [PATCH] QLogic VNIC: Changes to OFED install/uninstall script.

Ramachandra K ramachandra.kuchimanchi at qlogic.com
Thu Jul 10 08:44:33 PDT 2008


From: Ramachandra K <ramachandra.kuchimanchi at qlogic.com>

This patch takes care to handle installation and uninstallation of
new QLogic VNIC user component "Dynamic Update Daemon".

Signed-off-by: Ramachandra K <ramachandra.kuchimanchi at qlogic.com>
Signed-off-by: Poornima Kamath <poornima.kamath at qlogic.com>
Signed-off-by: Amar Mudrankit <amar.mudrankit at qlogic.com>
---

 install.pl   |   14 +++++++++++---
 uninstall.sh |    2 +-
 2 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/install.pl b/install.pl
index 1f2a51e..ac61400 100755
--- a/install.pl
+++ b/install.pl
@@ -824,12 +824,19 @@ my %packages_info = (
             dist_req_inst => [], ofa_req_build => [],
             ofa_req_inst => [],
             install32 => 0, exception => 0, configure_options => '' },
+        'qlgc_vnic_daemon' =>
+            { name => "qlgc_vnic_daemon", parent => "qlvnictools",
+            selected => 0, installed => 0, rpm_exist => 0, rpm_exist32 => 0,
+            available => 0, mode => "user", dist_req_build => [],
+            dist_req_inst => [], ofa_req_build => [],
+            ofa_req_inst => [],
+            install32 => 0, exception => 0, configure_options => '' },
         'qlvnictools' =>
             { name => "qlvnictools", parent => "qlvnictools",
             selected => 0, installed => 0, rpm_exist => 0, rpm_exist32 => 0,
             available => 0, mode => "user", dist_req_build => [],
             dist_req_inst => [], ofa_req_build => [],
-            ofa_req_inst => ["ibvexdmtools"],
+            ofa_req_inst => ["ibvexdmtools", "qlgc_vnic_daemon"],
             install32 => 0, exception => 0, configure_options => '' },
         'qlvnictools-debuginfo' =>
             { name => "qlvnictools-debuginfo", parent => "qlvnictools",
@@ -1237,7 +1244,7 @@ my %packages_info = (
         );
 
 
-my @hidden_packages = ("open-iscsi-generic", "ibvexdmtools");
+my @hidden_packages = ("open-iscsi-generic", "ibvexdmtools", "qlgc_vnic_daemon");
 
 my %MPI_SUPPORTED_COMPILERS = (gcc => 0, pgi => 0, intel => 0, pathscale => 0);
 
@@ -1585,9 +1592,10 @@ sub set_availability
     }
 
     # QLogic vnic
-    if ($kernel =~ m/2.6.9-34|2.6.9-42|2.6.9-55|2.6.9-67|2.6.16.[0-9.]*-[0-9.]*-[A-Za-z0-9.]*|2.6.19|2.6.18*/) {
+    if ($kernel =~ m/2.6.9-42|2.6.9-55|2.6.9-67|2.6.16.[0-9.]*-[0-9.]*-[A-Za-z0-9.]*|2.6.18-*/) {
             $kernel_modules_info{'qlgc_vnic'}{'available'} = 1;
             $packages_info{'ibvexdmtools'}{'available'} = 1;
+            $packages_info{'qlgc_vnic_daemon'}{'available'} = 1;
             $packages_info{'qlvnictools'}{'available'} = 1;
             $packages_info{'qlvnictools-debuginfo'}{'available'} = 1;
     }
diff --git a/uninstall.sh b/uninstall.sh
index 9107958..7c8aa9c 100755
--- a/uninstall.sh
+++ b/uninstall.sh
@@ -79,7 +79,7 @@ IB_ALL_PACKAGES="$IB_ALL_PACKAGES libsdp libsdp-devel libsdp-debuginfo"
 IB_ALL_PACKAGES="$IB_ALL_PACKAGES opensm opensm-libs opensm-devel opensm-debuginfo opensm-static"
 IB_ALL_PACKAGES="$IB_ALL_PACKAGES perftest perftest-debuginfo mstflint mstflint-debuginfo tvflash tvflash-debuginfo"
 IB_ALL_PACKAGES="$IB_ALL_PACKAGES dapl dapl-devel dapl-devel-static dapl-utils dapl-debuginfo"
-IB_ALL_PACKAGES="$IB_ALL_PACKAGES qlvnictools qlvnictools-debuginfo ibvexdmtools ibvexdmtools-debuginfo sdpnetstat sdpnetstat-debuginfo"
+IB_ALL_PACKAGES="$IB_ALL_PACKAGES qlvnictools qlvnictools-debuginfo ibvexdmtools ibvexdmtools-debuginfo qlgc_vnic_daemon sdpnetstat sdpnetstat-debuginfo"
 IB_ALL_PACKAGES="$IB_ALL_PACKAGES srptools srptools-debuginfo rds-tools rds-tools-debuginfo"
 IB_ALL_PACKAGES="$IB_ALL_PACKAGES ibsim ibsim-debuginfo"
 IB_ALL_PACKAGES="$IB_ALL_PACKAGES ibutils ibutils-debuginfo infiniband-diags infiniband-diags-debuginfo qperf qperf-debuginfo"




More information about the ewg mailing list