aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d/init.d')
-rwxr-xr-xrc.d/init.d/network8
1 files changed, 8 insertions, 0 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network
index 4579af02..4e80fbea 100755
--- a/rc.d/init.d/network
+++ b/rc.d/init.d/network
@@ -29,6 +29,14 @@ fi
# Even if IPX is configured, without the utilities we can't do much
[ ! -x /sbin/ipx_internal_net -o ! -x /sbin/ipx_configure ] && IPX=
+# If IPv6 is explicitly configured, make sure it's available.
+if [ "$NETWORKING_IPV6" = "yes" ]; then
+ alias=`modprobe -c | grep net-pf-10 | awk '{ print $2 }'`
+ if [ "$alias" != "ipv6" -a ! -f /proc/net/if_inet6 ]; then
+ echo "alias net-pf-10 ipv6" >> /etc/modules.conf
+ fi
+fi
+
CWD=`pwd`
cd /etc/sysconfig/network-scripts