Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 127339 - typo in net-dialup/ppp-2.4.3-r12 ip-down script
Summary: typo in net-dialup/ppp-2.4.3-r12 ip-down script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Highest minor (vote)
Assignee: Gentoo Dialup Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-23 10:25 UTC by Andreas Arens
Modified: 2006-03-23 14:20 UTC (History)
0 users

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 Andreas Arens 2006-03-23 10:25:48 UTC
/etc/ppp/ip-down has a typo:

if [ -x /etc/init.d/net.$1 ]; then
        if /etc/init.d/net.$1 --quiet --status ; then
                export IN_BACKGROUND="true"
                /etc/init.d/net.$1 --quiet stop
        fi
fi

This should be:
        if /etc/init.d/net.$1 --quiet status ; then


(note status w/o the '--')

otherwise you get:
Mar 23 19:08:07 ale rc-scripts: ERROR: wrong args ( --status )
Mar 23 19:08:07 ale rc-scripts: Usage: net.ppp0 { start|stop|restart }
Mar 23 19:08:07 ale rc-scripts:        net.ppp0 without arguments for full help

in syslog on hangup.

system info:
2006.1 ~amd64
Comment 1 Alin Năstac (RETIRED) gentoo-dev 2006-03-23 14:20:08 UTC
fixed in -r13.
please excuse an over-worked man ;)