aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2007-02-22 16:34:18 +0000
committerBill Nottingham <notting@redhat.com>2007-02-22 16:34:18 +0000
commit56d85cc68cb53d3cf49a85a7716bf6a58b13d133 (patch)
tree39445d079c094c8f21b55e19970a10fe264a1059
parent83fed2c63b68d2dd9c760157485f7afd0961b3b4 (diff)
downloadinitscripts-56d85cc68cb53d3cf49a85a7716bf6a58b13d133.tar
initscripts-56d85cc68cb53d3cf49a85a7716bf6a58b13d133.tar.gz
initscripts-56d85cc68cb53d3cf49a85a7716bf6a58b13d133.tar.bz2
initscripts-56d85cc68cb53d3cf49a85a7716bf6a58b13d133.tar.xz
initscripts-56d85cc68cb53d3cf49a85a7716bf6a58b13d133.zip
fix logic
-rw-r--r--sysconfig/network-scripts/network-functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index 5791c611..9ef2134c 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -391,7 +391,7 @@ is_wireless_device ()
install_bonding_driver ()
{
ethtool -i $1 2>/dev/null | grep -q "driver: bonding" && return 0
- [ ! -f /sys/class/net/bonding_masters ] && modprobe bonding || return 1
+ [ ! -f /sys/class/net/bonding_masters ] && ( modprobe bonding || return 1 )
echo "+$1" > /sys/class/net/bonding_masters
return 0
}