]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
Disable IPv6 if it is not enabled in config.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 23 Mar 2011 20:35:00 +0000 (20:35 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 23 Mar 2011 20:35:00 +0000 (20:35 +0000)
svn-id: @12212

sysconfig/network-scripts/functions.network

index 92684cd487e2451fe2a860e450607fe72cc3de7f..85d6f777c1cee86c9f528ac014e9aa5ea53a4de6 100644 (file)
@@ -370,8 +370,12 @@ set_down_loopback()
 
 modprobe_net()
 {
-       if is_yes "$IPV6_NETWORKING" && is_module "ipv6"; then
-               _modprobe single ipv6
+       if is_yes "$IPV6_NETWORKING"
+               if is_module "ipv6"; then
+                       _modprobe single ipv6
+               fi
+       elif [ -d /proc/sys/net/ipv6 ]; then
+               sysctl -w net.ipv6.conf.all.disable_ipv6=0
        fi
 
        if is_yes "$IPX" && is_module "ipx"; then
This page took 0.680535 seconds and 4 git commands to generate.