diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2015-01-02 08:19:45 +0100 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2015-02-04 15:21:47 +0100 |
commit | 8f193b7145d627b90a1cbe1bc0e74fb275ce30ef (patch) | |
tree | abfb7b06c86fa177934f572dcbf0aaaa061db815 /sysconfig | |
parent | 7034c3859ae2f64075b11e37d3898e5edd1a3b22 (diff) | |
download | initscripts-8f193b7145d627b90a1cbe1bc0e74fb275ce30ef.tar initscripts-8f193b7145d627b90a1cbe1bc0e74fb275ce30ef.tar.gz initscripts-8f193b7145d627b90a1cbe1bc0e74fb275ce30ef.tar.bz2 initscripts-8f193b7145d627b90a1cbe1bc0e74fb275ce30ef.tar.xz initscripts-8f193b7145d627b90a1cbe1bc0e74fb275ce30ef.zip |
network-functions: fix check in install_bonding_driver
Diffstat (limited to 'sysconfig')
-rw-r--r-- | sysconfig/network-scripts/network-functions | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions index 5eaa5ba2..8d47e4ff 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -439,7 +439,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 |