diff options
author | Bill Nottingham <notting@redhat.com> | 2008-04-01 13:04:12 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2008-04-01 13:04:12 -0400 |
commit | 9a45bd97790ebfdb5ceb137b013c40943b996055 (patch) | |
tree | 3db0882b527a7e1aec03b13bb5a3be43412343db /sysconfig | |
parent | ac349df0be82ac0cb131de62a700e210e91ed144 (diff) | |
download | initscripts-9a45bd97790ebfdb5ceb137b013c40943b996055.tar initscripts-9a45bd97790ebfdb5ceb137b013c40943b996055.tar.gz initscripts-9a45bd97790ebfdb5ceb137b013c40943b996055.tar.bz2 initscripts-9a45bd97790ebfdb5ceb137b013c40943b996055.tar.xz initscripts-9a45bd97790ebfdb5ceb137b013c40943b996055.zip |
don't attempt to re-enslave already-enslaved devices (#440077)
Diffstat (limited to 'sysconfig')
-rwxr-xr-x | sysconfig/network-scripts/ifup-eth | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth index 3e2c1d47..c5d03576 100755 --- a/sysconfig/network-scripts/ifup-eth +++ b/sysconfig/network-scripts/ifup-eth @@ -117,9 +117,10 @@ fi # slave device? if [ "${SLAVE}" = yes -a "${ISALIAS}" = no -a "${MASTER}" != "" ]; then - /sbin/ip link set dev ${DEVICE} down - echo "+${DEVICE}" > /sys/class/net/${MASTER}/bonding/slaves 2>/dev/null - + grep -wq "${DEVICE}" /sys/class/net/${MASTER}/bonding/slaves || { + /sbin/ip link set dev ${DEVICE} down + echo "+${DEVICE}" > /sys/class/net/${MASTER}/bonding/slaves 2>/dev/null + } if [ -n "$ETHTOOL_OPTS" ] ; then /sbin/ethtool -s ${REALDEVICE} $ETHTOOL_OPTS fi |