aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2015-01-02 08:19:45 +0100
committerLukas Nykryn <lnykryn@redhat.com>2015-05-06 13:50:47 +0200
commitbc80dbf1ab23037fb37a7c750c4be7b9e99b7b69 (patch)
treea9a727eba58d5ad6d0ccd09c6f1178e0321d937e
parenteeb66ed251f81d16ec4d30f194af84c740e72c66 (diff)
downloadinitscripts-bc80dbf1ab23037fb37a7c750c4be7b9e99b7b69.tar
initscripts-bc80dbf1ab23037fb37a7c750c4be7b9e99b7b69.tar.gz
initscripts-bc80dbf1ab23037fb37a7c750c4be7b9e99b7b69.tar.bz2
initscripts-bc80dbf1ab23037fb37a7c750c4be7b9e99b7b69.tar.xz
initscripts-bc80dbf1ab23037fb37a7c750c4be7b9e99b7b69.zip
network-functions: fix check in install_bonding_driver
-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 03d62bab..a7540c8f 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -468,7 +468,7 @@ install_bonding_driver ()
# Set config here
need_config "$1"
source_config
- if [ -f /sys/class/net/${DEVICE}/bonding/slaves -a $(wc -l < /sys/class/net/${DEVICE}/bonding/slaves) -eq 0 ]; then
+ if [ -f /sys/class/net/${DEVICE}/bonding/slaves ] && [ $(wc -l < /sys/class/net/${DEVICE}/bonding/slaves) -eq 0 ]; then
/sbin/ip link set dev ${DEVICE} down
# parse options and put them to arrays