Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 36195 - net.ppp0 started too slow
Summary: net.ppp0 started too slow
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-20 12:19 UTC by Serhij S. Stasyuk
Modified: 2003-12-22 07:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Serhij S. Stasyuk 2003-12-20 12:19:02 UTC
We have such command in /etc/init.d/net.ppp0:
      [ -n "$(/sbin/route | egrep 'default')" ] && route del default
so if we have not other internet connections and there are some routes, espesially  to external IP, we have to wait too long before routing table is displayed. If we change this command to:
      [ -n "$(/sbin/route -n | egrep '0.0.0.0')" ] && route del default
it would proceed much quicker. I use this in my gateway system and can say that it works.
Comment 1 Serhij S. Stasyuk 2003-12-20 12:40:54 UTC
So I need in net.${IFACE} to change commands
                echo "[ -f /etc/ppp/ip-up.local ] && . /etc/ppp/ip-up.local" \
                        >>/etc/ppp/ip-up
                echo "[ -f /etc/ppp/ip-down.local ] && . /etc/ppp/ip-down.local" \
                        >>/etc/ppp/ip-down
to
                echo "[ -f /etc/ppp/ip-up.local ] && . /etc/ppp/ip-up.local \$1 \$2 \$3 \$4 \$5 \$6" \
                        >>/etc/ppp/ip-up
                echo "[ -f /etc/ppp/ip-down.local ] && . /etc/ppp/ip-down.local \$1 \$2 \$3 \$4 \$5 \$6" \
                        >>/etc/ppp/ip-down
because I have more than one ppp.
Do I need to create new bug or it will be resolved here?
Comment 2 Heinrich Wendel (RETIRED) gentoo-dev 2003-12-22 07:20:55 UTC
fixed in 2.4.2_beta3-r1 .)