From 5473ffcdc6afc4a3fb56fb0019e3b34854be9a3d Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 11 Mar 2002 22:42:29 +0000 Subject: *BIG* IPv6 syncup. --- sysconfig/network-scripts/ifup-ippp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'sysconfig/network-scripts/ifup-ippp') diff --git a/sysconfig/network-scripts/ifup-ippp b/sysconfig/network-scripts/ifup-ippp index 2f715796..4ddf67c9 100755 --- a/sysconfig/network-scripts/ifup-ippp +++ b/sysconfig/network-scripts/ifup-ippp @@ -345,10 +345,18 @@ function addprovider() fi fi - ## Setup IPv6 - #if [ "${NETWORKING_IPV6}" = "yes" ]; then - # /etc/sysconfig/network-scripts/ifup-ipv6 $DEVICE - #fi + # Setup IPv6 + if [ "${NETWORKING_IPV6}" = "yes" ]; then + if [ "$IPV6INIT" = "yes" -a ! -z "$IPV6ADDR" ]; then + # Native IPv6 use of device configured, check of encapsulation required + if [ "$ENCAP" = "syncppp" ]; then + echo $"Warning: ipppd (kernel 2.4.x and below) doesn't support IPv6 using encapsulation 'syncppp'" + elif [ "$ENCAP" = "rawip" ]; then + echo $"Warning: link doesn't support IPv6 using encapsulation 'rawip'" + fi + fi + /etc/sysconfig/network-scripts/ifup-ipv6 $DEVICE + fi } addprovider || exit 1 -- cgit v1.2.1