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 1R6C5T-0005cj-Ob for garchives@archives.gentoo.org; Wed, 21 Sep 2011 01:58:59 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1D82E21C065; Wed, 21 Sep 2011 01:58:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id DAAF421C065 for ; Wed, 21 Sep 2011 01:58:51 +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 3DC0A1B401F for ; Wed, 21 Sep 2011 01:58:51 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 4868180042 for ; Wed, 21 Sep 2011 01:58:50 +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: <29693ecb7a031f6bacb74fd4dccfe0bdb1b1e5f8.idl0r@gentoo> 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: 29693ecb7a031f6bacb74fd4dccfe0bdb1b1e5f8 Date: Wed, 21 Sep 2011 01:58:50 +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: 4ecd7a8226354b86a9ed60184c1188ce commit: 29693ecb7a031f6bacb74fd4dccfe0bdb1b1e5f8 Author: Christian Ruppert gentoo org> AuthorDate: Wed Sep 21 01:57:09 2011 +0000 Commit: Christian Ruppert gentoo org> CommitDate: Wed Sep 21 01:57:09 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/openrc.git;a=3D= commit;h=3D29693ecb Refactoring of commit bf49e59e3eb4fe12167812bc1b4531742eddc383 Make sure the RPDB rules will be removed. --- net/iproute2.sh | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/net/iproute2.sh b/net/iproute2.sh index 765294a..660d514 100644 --- a/net/iproute2.sh +++ b/net/iproute2.sh @@ -301,9 +301,6 @@ 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")" @@ -311,7 +308,11 @@ iproute2_post_stop() einfo "Removing RPDB rules" _ip_rule_runner del "${rules}" fi - ip route flush table cache dev "${IFACE}" + + # Only do something if the interface actually exist + if _exists; then + ip route flush table cache dev "${IFACE}" + fi fi =20 # Don't delete sit0 as it's a special tunnel