]> git.openfabrics.org - ~aditr/ofed_scripts.git/commitdiff
Uninstall mlnx_en package if exist.
authorVladimir Sokolovsky <vlad@mellanox.co.il>
Mon, 2 Jun 2008 12:15:56 +0000 (15:15 +0300)
committerVladimir Sokolovsky <vlad@mellanox.co.il>
Mon, 2 Jun 2008 12:15:56 +0000 (15:15 +0300)
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.co.il>
install.pl

index e533be7bdf545182650f18375f140732556991a5..34a13d09e9f41e7c135b4c18491aa52eb8b01605 100755 (executable)
@@ -3628,6 +3628,9 @@ sub uninstall
     my $sig = 0;
     my $cnt = 0;
     print BLUE "Uninstalling the previous version of $PACKAGE", RESET "\n" if (not $quiet);
+    if ( -f "/sbin/mlnx_en_uninstall.sh" ) {
+        system("yes | /sbin/mlnx_en_uninstall.sh > $ofedlogs/mlnx_en_uninstall.log 2>&1");
+    }
     system("yes | ofed_uninstall.sh > $ofedlogs/ofed_uninstall.log 2>&1");
     $res = $? >> 8;
     $sig = $? & 127;