From a9c3e6924fc8b39ee6c7a7ba93bc392d1bc40a95 Mon Sep 17 00:00:00 2001 From: Lukas Nykryn Date: Thu, 15 Jan 2015 14:56:11 +0100 Subject: ifup-aliases: do not fail when only ipv6 addr is specified --- sysconfig/network-scripts/ifup-aliases | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sysconfig/network-scripts/ifup-aliases b/sysconfig/network-scripts/ifup-aliases index b3d045df..b20f2af6 100755 --- a/sysconfig/network-scripts/ifup-aliases +++ b/sysconfig/network-scripts/ifup-aliases @@ -133,6 +133,7 @@ function ini_env () { DEVICE="" IPADDR="" + IPV6ADDR="" PREFIX=$default_PREFIX NETMASK=$default_NETMASK BROADCAST=$default_BROADCAST @@ -182,6 +183,10 @@ function new_interface () fi if [ -z "$DEVICE" -o -z "$IPADDR" ]; then + if [ -n "$IPV6ADDR" -a -n "$DEVICE" ] && [[ "$IPV6INIT" != [nN0]* ]]; then + /etc/sysconfig/network-scripts/ifup-ipv6 ${DEVICE} + return $? + fi net_log $"error in $FILE: didn't specify device or ipaddr" return 1 fi -- cgit v1.2.1