diff options
author | William Hubbs <williamh@gentoo.org> | 2011-05-16 14:56:50 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2011-05-16 14:57:46 -0500 |
commit | fd48bc09fff09083b04b8cccad44092cceee9884 (patch) | |
tree | 6ee178c3558da011810a431ea0bc92e7b25957fe /net | |
parent | db1daa585737a03690d4d8e4040705b9c9c9c5ef (diff) |
net:bonding small style change for readability
Diffstat (limited to 'net')
-rw-r--r-- | net/bonding.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/bonding.sh b/net/bonding.sh index 15f41e20..ae50ca42 100644 --- a/net/bonding.sh +++ b/net/bonding.sh @@ -104,8 +104,9 @@ bonding_pre_start() fi for s in ${slaves}; do [ "${s}" = "${primary}" ] && continue - grep -q ${s} $sys_bonding_path/slaves \ - || echo "+${s}" >$sys_bonding_path/slaves + if ! grep -q ${s} $sys_bonding_path/slaves; then + echo "+${s}" >$sys_bonding_path/slaves + fi done else /sbin/ifenslave "${IFACE}" ${slaves} >/dev/null |