From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-commits+bounces-345587-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1QM3vj-0003GK-Gi
	for garchives@archives.gentoo.org; Mon, 16 May 2011 19:58:15 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 761981C070;
	Mon, 16 May 2011 19:58:08 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	by pigeon.gentoo.org (Postfix) with ESMTP id 4652C1C070
	for <gentoo-commits@lists.gentoo.org>; Mon, 16 May 2011 19:58:08 +0000 (UTC)
Received: from pelican.gentoo.org (unknown [66.219.59.40])
	(using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id C95D11B403A
	for <gentoo-commits@lists.gentoo.org>; Mon, 16 May 2011 19:58:07 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by pelican.gentoo.org (Postfix) with ESMTP id 3EB057448A
	for <gentoo-commits@lists.gentoo.org>; Mon, 16 May 2011 19:58:07 +0000 (UTC)
From: "William Hubbs" <williamh@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" <williamh@gentoo.org>
Message-ID: <fd48bc09fff09083b04b8cccad44092cceee9884.williamH@gentoo>
Subject: [gentoo-commits] proj/openrc:master commit in: net/
X-VCS-Repository: proj/openrc
X-VCS-Files: net/bonding.sh
X-VCS-Directories: net/
X-VCS-Committer: williamH
X-VCS-Committer-Name: William Hubbs
X-VCS-Revision: fd48bc09fff09083b04b8cccad44092cceee9884
Date: Mon, 16 May 2011 19:58:07 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: quoted-printable
X-Archives-Salt: 
X-Archives-Hash: 7808aab48e18bd466f4fe49fbabae8eb

commit:     fd48bc09fff09083b04b8cccad44092cceee9884
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Mon May 16 19:56:50 2011 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Mon May 16 19:57:46 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=3Dproj/openrc.git;a=3D=
commit;h=3Dfd48bc09

net:bonding small style change for readability

---
 net/bonding.sh |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/net/bonding.sh b/net/bonding.sh
index 15f41e2..ae50ca4 100644
--- a/net/bonding.sh
+++ b/net/bonding.sh
@@ -104,8 +104,9 @@ bonding_pre_start()
 		fi
 		for s in ${slaves}; do
 			[ "${s}" =3D "${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