aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2007-01-04 21:47:24 +0000
committerBill Nottingham <notting@redhat.com>2007-01-04 21:47:24 +0000
commit4b5e997cdfde8f621dc033cad1dad8f97481dbd1 (patch)
tree79b08698378e877e6df3c4b231211d0b5ac53211
parent513a3c5c8926ea4eb47f76b65e5dc4b7d1ea7134 (diff)
downloadinitscripts-4b5e997cdfde8f621dc033cad1dad8f97481dbd1.tar
initscripts-4b5e997cdfde8f621dc033cad1dad8f97481dbd1.tar.gz
initscripts-4b5e997cdfde8f621dc033cad1dad8f97481dbd1.tar.bz2
initscripts-4b5e997cdfde8f621dc033cad1dad8f97481dbd1.tar.xz
initscripts-4b5e997cdfde8f621dc033cad1dad8f97481dbd1.zip
release bonding slaves properly (#220525)
-rwxr-xr-xsysconfig/network-scripts/ifdown-eth2
1 files changed, 2 insertions, 0 deletions
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