diff options
Diffstat (limited to 'net-misc/quagga/files/zebra.init')
-rw-r--r-- | net-misc/quagga/files/zebra.init | 14 |
1 files changed, 4 insertions, 10 deletions
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() { |