]> git.openfabrics.org - ~tnikolova/ofed_scripts/.git/commitdiff
install.pl: IPoIB configuration based on Eth configuration.
authorVladimir Sokolovsky <vlad@mellanox.co.il>
Mon, 29 Oct 2007 09:14:07 +0000 (11:14 +0200)
committerVladimir Sokolovsky <vlad@mellanox.co.il>
Mon, 29 Oct 2007 09:14:07 +0000 (11:14 +0200)
Check that Eth dev status is UP.

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.co.il>
install.pl

index c32a7dea26bb53822d687c1c7315f2eaadf16a79..efdedcaf97e1efec749ebda298d66bbbc4c3e25d 100755 (executable)
@@ -2974,7 +2974,7 @@ sub is_carrier
     open(IFSTATUS, "ip link show dev $ifcheck |");
     while ( <IFSTATUS> ) {
         next unless m@(\s$ifcheck).*@;
-        if( m/NO-CARRIER/ ) {
+        if( m/NO-CARRIER/ or not m/UP/ ) {
             close(IFSTATUS);
             return 0;
         }