]> git.openfabrics.org - ~vlad/ofed_scripts.git/commitdiff
ipv6 can't be loaded with modprobe on OpenSuSE 10.3, causing ib_ipoib
authorVladimir Sokolovsky <vlad@mellanox.co.il>
Tue, 9 Dec 2008 08:03:03 +0000 (10:03 +0200)
committerVladimir Sokolovsky <vlad@mellanox.co.il>
Tue, 9 Dec 2008 08:03:03 +0000 (10:03 +0200)
loading failure with unresolved symbol.
This patch comments line in /etc/modprobe.d/ipv6.

BUG: https://bugs.openfabrics.org/show_bug.cgi?id=1449

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

index c42d30c61fbc789b4411992b676d58016edcc77c..2335d63ebfce2a5d3e4310b1603957ebe8b90bd5 100755 (executable)
@@ -4206,6 +4206,27 @@ sub main
                 close MODPROBE_CONF;
             }
         }
+
+        # BUG: https://bugs.openfabrics.org/show_bug.cgi?id=1449
+        if (-f "/etc/modprobe.d/ipv6") {
+            open(IPV6, "/etc/modprobe.d/ipv6") or die "Can't open /etc/modprobe.d/ipv6: $!";
+            my @ipv6_lines;
+            while (<IPV6>) {
+                push @ipv6_lines, $_;
+            }
+            close(IPV6);
+
+            open(IPV6, ">/etc/modprobe.d/ipv6") or die "Can't open /etc/modprobe.d/ipv6: $!";
+            foreach my $line (@ipv6_lines) {
+                chomp $line;
+                if ($line =~ /^\s*install ipv6/) {
+                    print IPV6 "# $line\n";
+                } else {
+                    print IPV6 "$line\n";
+                }
+            }
+            close(IPV6);
+        }
     }
 
     if ( not $quiet ) {
index e737bd0399c7999d3558880ea189ae47b27d12a2..98557695c810ea700eb6b7926e61b3dc8e918942 100755 (executable)
@@ -312,6 +312,10 @@ uninstall()
     fi
 
     perl -ni -e "print unless (/mlx4_core/)" /etc/modprobe.conf
+
+    if [ -f /etc/modprobe.d/ipv6 ]; then
+        perl -ni -e "s@# install ipv6 \/bin\/true@install ipv6 /bin/true@;print" /etc/modprobe.d/ipv6
+    fi
 }
 
 echo