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 ) id 1Q0eMY-0002wZ-Vs for garchives@archives.gentoo.org; Fri, 18 Mar 2011 18:25:27 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CD2DE1C006; Fri, 18 Mar 2011 18:25:18 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 94D3F1C006 for ; Fri, 18 Mar 2011 18:25:18 +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 0284B1B4081 for ; Fri, 18 Mar 2011 18:25:18 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 67CFA8006A for ; Fri, 18 Mar 2011 18:25:17 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <9f5eb03e5ef30f4357d05e004f38ea6ca0d21346.vapier@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: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 9f5eb03e5ef30f4357d05e004f38ea6ca0d21346 Date: Fri, 18 Mar 2011 18:25:17 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: be23dc5c7c90ec139e333806f0737460 commit: 9f5eb03e5ef30f4357d05e004f38ea6ca0d21346 Author: Mike Frysinger gentoo org> AuthorDate: Fri Mar 18 18:24:18 2011 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Fri Mar 18 18:24:18 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/openrc.git;a=3D= commit;h=3D9f5eb03e net: bonding: avoid using bash string replace X-Gentoo-Bug: 359311 X-Gentoo-Bug-URL: http://bugs.gentoo.org/359311 Reported-by: Raffaello D. Di Napoli gmail.com> Signed-off-by: Mike Frysinger gentoo.org> --- net/bonding.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/bonding.sh b/net/bonding.sh index 209d4f0..6d15f0d 100644 --- a/net/bonding.sh +++ b/net/bonding.sh @@ -100,9 +100,9 @@ bonding_pre_start() if [ -n "${primary}" ]; then echo "+${primary}" >/sys/class/net/"${IFACE}"/bonding/slaves echo "${primary}" >/sys/class/net/"${IFACE}"/bonding/primary - slaves=3D"${slaves/${primary}/}" fi for s in ${slaves}; do + [ "${s}" =3D "${primary}" ] && continue echo "+${s}" >/sys/class/net/"${IFACE}"/bonding/slaves done else