summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2007-02-25 09:57:18 +0000
committerAlin Năstac <mrness@gentoo.org>2007-02-25 09:57:18 +0000
commitfb2f611afa8954361fad80f72716f0fabb7b74d7 (patch)
tree77056272f71606babe56900099b7fc8ea58daa7e /net-misc
parentuse KV_DIR only after linux-mod_pkg_setup, bug 168051 (diff)
downloadgentoo-2-fb2f611afa8954361fad80f72716f0fabb7b74d7.tar.gz
gentoo-2-fb2f611afa8954361fad80f72716f0fabb7b74d7.tar.bz2
gentoo-2-fb2f611afa8954361fad80f72716f0fabb7b74d7.zip
Speed up cleanup of staled zebra routes, thanks to Jan Oravec <jan.oravec at 6com dot sk> (#168247).
(Portage version: 2.1.1-r2)
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/quagga/ChangeLog6
-rw-r--r--net-misc/quagga/files/zebra.init14
2 files changed, 9 insertions, 11 deletions
diff --git a/net-misc/quagga/ChangeLog b/net-misc/quagga/ChangeLog
index 94ae6e29e408..20b91ac17f06 100644
--- a/net-misc/quagga/ChangeLog
+++ b/net-misc/quagga/ChangeLog
@@ -2,7 +2,11 @@
# Copyright 1999-2007 Gentoo Foundation
# Copyright 2003-2004 DataCore GmbH
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v 1.47 2007/01/12 14:04:43 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v 1.48 2007/02/25 09:57:17 mrness Exp $
+
+ 25 Feb 2007; Alin Năstac <mrness@gentoo.org> files/zebra.init:
+ Speed up cleanup of staled zebra routes, thanks to Jan Oravec <jan.oravec at
+ 6com dot sk> (#168247).
*quagga-0.99.6 (12 Jan 2007)
diff --git a/net-misc/quagga/files/zebra.init b/net-misc/quagga/files/zebra.init
index 45c90bf03736..5ca8ef58c0a8 100644
--- a/net-misc/quagga/files/zebra.init
+++ b/net-misc/quagga/files/zebra.init
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/files/zebra.init,v 1.1 2005/09/14 11:11:08 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/files/zebra.init,v 1.2 2007/02/25 09:57:18 mrness Exp $
depend() {
need net
@@ -16,15 +16,9 @@ checkconfig() {
}
cleanup() {
- stale=`ip route | grep 'proto zebra' | awk '{ print $1 }'`
- if [ ! -z "$stale" ] ; then
- einfo "Cleaning up stale zebra routes..."
- fi
- for r in $stale; do
- ebegin "Removing stale route to $r..."
- ip route del $r;
- eend $?
- done
+ ebegin "Cleaning up stale zebra routes..."
+ ip route flush proto zebra
+ eend $?
}
start() {