aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2015-01-02 08:19:45 +0100
committerLukas Nykryn <lnykryn@redhat.com>2015-01-02 08:19:45 +0100
commitbe35cef79aadb7bc31ba4fe81bcdc4aa66e451c2 (patch)
treeb2a02d08080ee0c06db204093cb052a0c00953cf /sysconfig
parentcfbc1873f04b1fc6d2289f452380715f4c0a7bb0 (diff)
downloadinitscripts-be35cef79aadb7bc31ba4fe81bcdc4aa66e451c2.tar
initscripts-be35cef79aadb7bc31ba4fe81bcdc4aa66e451c2.tar.gz
initscripts-be35cef79aadb7bc31ba4fe81bcdc4aa66e451c2.tar.bz2
initscripts-be35cef79aadb7bc31ba4fe81bcdc4aa66e451c2.tar.xz
initscripts-be35cef79aadb7bc31ba4fe81bcdc4aa66e451c2.zip
network-functions: fix check in install_bonding_driver
Diffstat (limited to 'sysconfig')
-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 33498cce..1ecbcfcb 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -480,7 +480,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