From fd48bc09fff09083b04b8cccad44092cceee9884 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Mon, 16 May 2011 14:56:50 -0500 Subject: net:bonding small style change for readability --- net/bonding.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'net') 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 -- cgit v1.2.3