From 541bb8a495f1445e80ebc403bf81e2eed7cbce36 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Wed, 23 Mar 2011 20:35:00 +0000 Subject: [PATCH] Disable IPv6 if it is not enabled in config. svn-id: @12212 --- sysconfig/network-scripts/functions.network | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sysconfig/network-scripts/functions.network b/sysconfig/network-scripts/functions.network index 92684cd4..85d6f777 100644 --- a/sysconfig/network-scripts/functions.network +++ b/sysconfig/network-scripts/functions.network @@ -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 -- 2.44.0