diff options
author | Heinrich Wendel <lanius@gentoo.org> | 2003-12-22 15:20:53 +0000 |
---|---|---|
committer | Heinrich Wendel <lanius@gentoo.org> | 2003-12-22 15:20:53 +0000 |
commit | 35c6c7f2ebe301b85a16a9dd99ae09d59e00a895 (patch) | |
tree | 1e8b59633b10f5031ebaa4a06d5b52d8ff77c4e5 /net-dialup/ppp/files | |
parent | added support for leased-line pppd setups (bug #33290) (diff) | |
download | gentoo-2-35c6c7f2ebe301b85a16a9dd99ae09d59e00a895.tar.gz gentoo-2-35c6c7f2ebe301b85a16a9dd99ae09d59e00a895.tar.bz2 gentoo-2-35c6c7f2ebe301b85a16a9dd99ae09d59e00a895.zip |
speed up startup in special cases (bug #36195)
Diffstat (limited to 'net-dialup/ppp/files')
-rw-r--r-- | net-dialup/ppp/files/2.4.2b3/ip-down | 2 | ||||
-rw-r--r-- | net-dialup/ppp/files/2.4.2b3/ip-up | 2 | ||||
-rw-r--r-- | net-dialup/ppp/files/2.4.2b3/net.ppp0 | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/net-dialup/ppp/files/2.4.2b3/ip-down b/net-dialup/ppp/files/2.4.2b3/ip-down index 62a5426a8593..767aafbea610 100644 --- a/net-dialup/ppp/files/2.4.2b3/ip-down +++ b/net-dialup/ppp/files/2.4.2b3/ip-down @@ -24,4 +24,4 @@ fi [ -f /etc/init.d/firewall ] && /etc/init.d/firewall stop -[ -f /etc/ppp/ip-down.local ] && . /etc/ppp/ip-down.local +[ -f /etc/ppp/ip-down.local ] && . /etc/ppp/ip-down.local $1 $2 $3 $4 $5 $6 diff --git a/net-dialup/ppp/files/2.4.2b3/ip-up b/net-dialup/ppp/files/2.4.2b3/ip-up index afca5d614f0a..e7ce165494d1 100644 --- a/net-dialup/ppp/files/2.4.2b3/ip-up +++ b/net-dialup/ppp/files/2.4.2b3/ip-up @@ -25,4 +25,4 @@ fi [ -f /etc/init.d/firewall ] && /etc/init.d/firewall start -[ -f /etc/ppp/ip-up.local ] && . /etc/ppp/ip-up.local +[ -f /etc/ppp/ip-up.local ] && . /etc/ppp/ip-up.local $1 $2 $3 $4 $5 $6 diff --git a/net-dialup/ppp/files/2.4.2b3/net.ppp0 b/net-dialup/ppp/files/2.4.2b3/net.ppp0 index 5c1f89422ac3..ab39cc0a4696 100644 --- a/net-dialup/ppp/files/2.4.2b3/net.ppp0 +++ b/net-dialup/ppp/files/2.4.2b3/net.ppp0 @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/ppp/files/2.4.2b3/net.ppp0,v 1.2 2003/12/22 15:16:18 lanius Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dialup/ppp/files/2.4.2b3/net.ppp0,v 1.3 2003/12/22 15:20:43 lanius Exp $ # Misc internal variables CMD_LINE="" @@ -31,7 +31,7 @@ start() { if [ "${DEFROUTE}" = "yes" ] then - [ -n "$(/sbin/route | egrep 'default')" ] && route del default + [ -n "$(/sbin/route -n | egrep '0.0.0.0')" ] && route del default fi # Added hide-password here, can't be too sure... /usr/sbin/pppd ${CMD_LINE} ${MODEMPORT} ${LINESPEED} \ |