]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
Load ipv6 and ipx only when not built into kernel.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 8 Mar 2011 20:34:30 +0000 (20:34 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 8 Mar 2011 20:34:30 +0000 (20:34 +0000)
svn-id: @12197

sysconfig/network-scripts/functions.network

index 86b72f04f99af38b5ce26d3159d3c33b62880e90..151835179bed1991538bae0f8ebcb4859934c31f 100644 (file)
@@ -346,12 +346,16 @@ set_down_loopback()
 
 modprobe_net()
 {
-       if is_yes "$IPV6_NETWORKING" && is_module "ipv6"; then
-               _modprobe single ipv6
+       if is_yes "$IPV6_NETWORKING" && \
+               [ "$(awk '$1 ~ /^TCPv6/ { print $8 }' /proc/net/protocols 2> /dev/null)" != "kernel" ] && \
+               is_module "ipv6"; then
+                       _modprobe single ipv6
        fi
 
-       if is_yes "$IPX" && is_module "ipx"; then
-               _modprobe single ipx
+       if is_yes "$IPX" && \
+               [ "$(awk '$1 ~ /^IPX/ { print $8 }' /proc/net/protocols 2> /dev/null)" != "kernel" ] && \
+               is_module "ipx"; then
+                       _modprobe single ipx
        fi
 }
 
This page took 1.150761 seconds and 4 git commands to generate.