From be35cef79aadb7bc31ba4fe81bcdc4aa66e451c2 Mon Sep 17 00:00:00 2001 From: Lukas Nykryn Date: Fri, 2 Jan 2015 08:19:45 +0100 Subject: network-functions: fix check in install_bonding_driver --- sysconfig/network-scripts/network-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1