diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2012-02-09 08:19:35 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2012-02-09 08:19:35 +0000 |
commit | fb5dec470b1c1fb35b16c20d031b682db2cc4ee0 (patch) | |
tree | 21d5143457ceca63a5aefef35e744c58a71902a1 /net-libs/openslp/files | |
parent | Add missing IUSE. (diff) | |
download | gentoo-2-fb5dec470b1c1fb35b16c20d031b682db2cc4ee0.tar.gz gentoo-2-fb5dec470b1c1fb35b16c20d031b682db2cc4ee0.tar.bz2 gentoo-2-fb5dec470b1c1fb35b16c20d031b682db2cc4ee0.zip |
The init script fails on a machine with multiple non-lo interfaces as route only takes one argument, I discovered this during testing fast booting, when there was no default route yet. I think it should not bother to check for a route anyway (as it is moot after there is a default route), but I'm not making that change.
(Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
Diffstat (limited to 'net-libs/openslp/files')
-rw-r--r-- | net-libs/openslp/files/slpd-init | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net-libs/openslp/files/slpd-init b/net-libs/openslp/files/slpd-init index 68657200dd34..bbc0eac1abc3 100644 --- a/net-libs/openslp/files/slpd-init +++ b/net-libs/openslp/files/slpd-init @@ -1,7 +1,7 @@ #!/sbin/runscript -# Copyright 1999-2004 Gentoo Foundation +# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-libs/openslp/files/slpd-init,v 1.4 2007/07/13 13:20:28 uberlord Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-libs/openslp/files/slpd-init,v 1.5 2012/02/09 08:19:35 robbat2 Exp $ depend() { need net @@ -27,7 +27,7 @@ multicast_route_set() { MSG_FAILED_TO_ADD=' FAILED - Route NOT Added.' MSG_SUCCES_ON_ADD=' SUCCESS - Route Added.' - CMD_GET_INTERFACE="netstat -i | awk 'BEGIN{}(NR>2)&&(!/^lo*/){print \$1}'" + CMD_GET_INTERFACE="netstat -i | awk 'BEGIN{}(NR>2)&&(!/^lo*/){print \$1;exit}'" CMD_ADD_ROUTE="route add -net 224.0.0.0 netmask 240.0.0.0" ping $PING_OPTIONS_1 $MULTICAST_ADDRESS 2> $TMP_FILE 1> /dev/null |