diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2015-01-15 14:56:11 +0100 |
---|---|---|
committer | Lukáš Nykrýn <lnykryn@redhat.com> | 2016-10-27 16:07:38 +0200 |
commit | 1cd4606a6de43fb9914f7099db2e30e3e2932dc0 (patch) | |
tree | ec1f675c18ffc94cc2a18f5af51c20c6d92777f4 /sysconfig/network-scripts | |
parent | 851dddf4a1d36522f440d3ca7710d40ef55af610 (diff) | |
download | initscripts-1cd4606a6de43fb9914f7099db2e30e3e2932dc0.tar initscripts-1cd4606a6de43fb9914f7099db2e30e3e2932dc0.tar.gz initscripts-1cd4606a6de43fb9914f7099db2e30e3e2932dc0.tar.bz2 initscripts-1cd4606a6de43fb9914f7099db2e30e3e2932dc0.tar.xz initscripts-1cd4606a6de43fb9914f7099db2e30e3e2932dc0.zip |
ifup-aliases: do not fail when only ipv6 addr is specified
Resolves: RHBZ - #1340169
Diffstat (limited to 'sysconfig/network-scripts')
-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 c47d6ef7..d1b0742e 100755 --- a/sysconfig/network-scripts/ifup-aliases +++ b/sysconfig/network-scripts/ifup-aliases @@ -134,6 +134,7 @@ function ini_env () { DEVICE="" IPADDR="" + IPV6ADDR="" PREFIX=$default_PREFIX NETMASK=$default_NETMASK BROADCAST=$default_BROADCAST @@ -184,6 +185,10 @@ function new_interface () fi if [ -z "$DEVICE" -o -z "$IPADDR" ]; then + if [ -n "$IPV6ADDR" -a -n "$DEVICE" ] && is_true "$IPV6INIT"; then + /etc/sysconfig/network-scripts/ifup-ipv6 ${DEVICE} + return $? + fi net_log $"error in $FILE: didn't specify device or ipaddr" return 1 fi |