aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-eth
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2011-04-27 13:10:34 -0400
committerBill Nottingham <notting@redhat.com>2011-04-27 13:10:34 -0400
commit318d859b9df0131a80cdfa7b6a12066bd5212965 (patch)
tree7a21cb92a31e124c829969eb5550edd23e03a09a /sysconfig/network-scripts/ifup-eth
parentb15a418b0ab137507d8e96d4b35d6ff7db76ee8f (diff)
downloadinitscripts-318d859b9df0131a80cdfa7b6a12066bd5212965.tar
initscripts-318d859b9df0131a80cdfa7b6a12066bd5212965.tar.gz
initscripts-318d859b9df0131a80cdfa7b6a12066bd5212965.tar.bz2
initscripts-318d859b9df0131a80cdfa7b6a12066bd5212965.tar.xz
initscripts-318d859b9df0131a80cdfa7b6a12066bd5212965.zip
Handle IPADDRx correctly for static addresses (#698738)
Diffstat (limited to 'sysconfig/network-scripts/ifup-eth')
-rwxr-xr-xsysconfig/network-scripts/ifup-eth2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth
index 469a07fa..764d27a2 100755
--- a/sysconfig/network-scripts/ifup-eth
+++ b/sysconfig/network-scripts/ifup-eth
@@ -211,7 +211,7 @@ if [ -n "${DYNCONFIG}" ] && [ -x /sbin/dhclient ]; then
fi
# end dynamic device configuration
else
- if [ -z "${IPADDR}" ]; then
+ if [ -z "${IPADDR}" -a -z "${IPADDR0}" -a -z "${IPADDR1}" -a -z "${IPADDR2}" ]; then
# enable device without IP, useful for e.g. PPPoE
ip link set dev ${REALDEVICE} up
if [ -n "$ETHTOOL_OPTS" ] ; then