diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2015-01-15 14:56:11 +0100 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2015-01-15 14:56:11 +0100 |
commit | a9c3e6924fc8b39ee6c7a7ba93bc392d1bc40a95 (patch) | |
tree | a89a001b9b62c0bda8aa643b6f6efef4b41f4b4f /sysconfig | |
parent | 9521f48d0cd04ed88131933df9f6ada8364a9d05 (diff) | |
download | initscripts-a9c3e6924fc8b39ee6c7a7ba93bc392d1bc40a95.tar initscripts-a9c3e6924fc8b39ee6c7a7ba93bc392d1bc40a95.tar.gz initscripts-a9c3e6924fc8b39ee6c7a7ba93bc392d1bc40a95.tar.bz2 initscripts-a9c3e6924fc8b39ee6c7a7ba93bc392d1bc40a95.tar.xz initscripts-a9c3e6924fc8b39ee6c7a7ba93bc392d1bc40a95.zip |
ifup-aliases: do not fail when only ipv6 addr is specified
Diffstat (limited to 'sysconfig')
-rwxr-xr-x | sysconfig/network-scripts/ifup-aliases | 5 |
1 files changed, 5 insertions, 0 deletions
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 |