From 2b7b7655483487772e1458fed00d1eaea199bc5c Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 4 Jan 2007 21:47:59 +0000 Subject: release bonding slaves properly (#220525) --- sysconfig/network-scripts/ifdown-eth | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sysconfig/network-scripts') diff --git a/sysconfig/network-scripts/ifdown-eth b/sysconfig/network-scripts/ifdown-eth index efcd13d8..c0de20e5 100755 --- a/sysconfig/network-scripts/ifdown-eth +++ b/sysconfig/network-scripts/ifdown-eth @@ -37,6 +37,7 @@ fi # Check to make sure the device is actually up check_device_down ${DEVICE} && [ "$BOOTPROTO" != "dhcp" -a "$BOOTPROTO" != "bootp" ] && [ -n "$VLAN" -a "$VLAN" != "yes" ] && exit 0 +if [ "${SLAVE}" != "yes" -o -z "${MASTER}" ]; then if [ -n "${HWADDR}" -a -z "${MACADDR}" ]; then FOUNDMACADDR=`get_hwaddr ${REALDEVICE}` if [ -n "${FOUNDMACADDR}" -a "${FOUNDMACADDR}" != "${HWADDR}" ]; then @@ -49,6 +50,7 @@ if [ -n "${HWADDR}" -a -z "${MACADDR}" ]; then fi fi fi +fi if is_bonding_device ${DEVICE} ; then for device in `LANG=C grep -l "^[[:space:]]*MASTER=${DEVICE}" /etc/sysconfig/network-scripts/ifcfg-*` ; do -- cgit v1.2.1