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 1RfMM2-0006hS-JI for garchives@archives.gentoo.org; Tue, 27 Dec 2011 02:01:26 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6315E21C112; Tue, 27 Dec 2011 02:01:19 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 2B24821C112 for ; Tue, 27 Dec 2011 02:01:19 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A98031B401C for ; Tue, 27 Dec 2011 02:01:18 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 1610180043 for ; Tue, 27 Dec 2011 02:01:18 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <5615325a8406c5691991381d4e9d760e4f84be58.robbat2@gentoo> Subject: [gentoo-commits] proj/openrc:master commit in: net/ X-VCS-Repository: proj/openrc X-VCS-Files: net/vlan.sh X-VCS-Directories: net/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: 5615325a8406c5691991381d4e9d760e4f84be58 Date: Tue, 27 Dec 2011 02:01:18 +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: 6a7a5139-d92d-440b-a341-12ccceb0e669 X-Archives-Hash: 89d05c4d549111c72a8c511e282aa924 commit: 5615325a8406c5691991381d4e9d760e4f84be58 Author: Robin H. Johnson gentoo org> AuthorDate: Tue Dec 27 01:56:26 2011 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Tue Dec 27 01:56:26 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/openrc.git;a=3D= commit;h=3D5615325a net/vlan: Fix prestop when device was hard-removed already During stop of an interface, if it has been removed already (eg hotunplug), not existing is fine. X-Gentoo-Bug: 395859 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=3D395859 Signed-off-by: Robin H. Johnson gentoo.org> --- net/vlan.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/vlan.sh b/net/vlan.sh index ced5aa0..960cd09 100644 --- a/net/vlan.sh +++ b/net/vlan.sh @@ -123,7 +123,7 @@ vlan_pre_stop() { local vlan=3D =20 - _exists || return 1 + _exists || return 0 =20 for vlan in $(_get_vlans); do einfo "Removing VLAN ${vlan##*.} from ${IFACE}"