diff options
author | Bill Nottingham <notting@redhat.com> | 2001-02-19 17:37:49 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2001-02-19 17:37:49 +0000 |
commit | 3a7f4f5f7decb87bcae8f711cb9879bbe44967ca (patch) | |
tree | e584932bee44a1fb7928401da2601abf87d0fd2d /rc.d | |
parent | 0d6c289a408f1363b43fb7f727aba6286ebd9821 (diff) | |
download | initscripts-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-x | rc.d/init.d/network | 8 |
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 |