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 1R5PTb-0001lw-TR for garchives@archives.gentoo.org; Sun, 18 Sep 2011 22:04:42 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B7D5521C39F; Sun, 18 Sep 2011 22:04:27 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 8D6B521C3A3 for ; Sun, 18 Sep 2011 22:04:27 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 215811B4026 for ; Sun, 18 Sep 2011 22:04:27 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 29DDA80042 for ; Sun, 18 Sep 2011 22:04:26 +0000 (UTC) From: "Christian Ruppert" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Christian Ruppert" Message-ID: Subject: [gentoo-commits] proj/openrc:master commit in: net/ X-VCS-Repository: proj/openrc X-VCS-Files: net/iproute2.sh X-VCS-Directories: net/ X-VCS-Committer: idl0r X-VCS-Committer-Name: Christian Ruppert X-VCS-Revision: bf49e59e3eb4fe12167812bc1b4531742eddc383 Date: Sun, 18 Sep 2011 22:04:26 +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: 012d762060a70a4d814a68c5008b8c31 commit: bf49e59e3eb4fe12167812bc1b4531742eddc383 Author: Yun Zheng Hu fox-it com> AuthorDate: Sun Sep 18 22:01:52 2011 +0000 Commit: Christian Ruppert gentoo org> CommitDate: Sun Sep 18 22:04:19 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/openrc.git;a=3D= commit;h=3Dbf49e59e Don't do anything if the interface doesn't exist iproute2_post_stop() does now check if the network interface still exist. Reported-by: Yun Zheng Hu fox-it.com> X-Gentoo-Bug: 379575 X-Gentoo-Bug-URL: https://bugs.gentoo.org/379575 --- net/iproute2.sh | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/net/iproute2.sh b/net/iproute2.sh index 2e02fbe..765294a 100644 --- a/net/iproute2.sh +++ b/net/iproute2.sh @@ -301,6 +301,9 @@ iproute2_post_start() =20 iproute2_post_stop() { + # Only do something if the interface actually exist + _exists || return + # Kernel may not have IP built in if [ -e /proc/net/route ]; then local rules=3D"$(service_get_value "ip_rule")"