aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-02-19 17:37:49 +0000
committerBill Nottingham <notting@redhat.com>2001-02-19 17:37:49 +0000
commit3a7f4f5f7decb87bcae8f711cb9879bbe44967ca (patch)
treee584932bee44a1fb7928401da2601abf87d0fd2d /rc.d
parent0d6c289a408f1363b43fb7f727aba6286ebd9821 (diff)
downloadinitscripts-3a7f4f5f7decb87bcae8f711cb9879bbe44967ca.tar
initscripts-3a7f4f5f7decb87bcae8f711cb9879bbe44967ca.tar.gz
initscripts-3a7f4f5f7decb87bcae8f711cb9879bbe44967ca.tar.bz2
initscripts-3a7f4f5f7decb87bcae8f711cb9879bbe44967ca.tar.xz
initscripts-3a7f4f5f7decb87bcae8f711cb9879bbe44967ca.zip
if IPv6 is configured, make sure it's available
Diffstat (limited to 'rc.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