Bug 47263 - initscripts 5-96 /ets/sysconfig/network-scripts/ifup-ppp dies if /usr/sbin/adsl-start missing
Summary: initscripts 5-96 /ets/sysconfig/network-scripts/ifup-ppp dies if /usr/sbin/ad...
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: initscripts
Version: 1.0
Hardware: i386
OS: Linux
high
high
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-07-04 08:43 UTC by david avery
Modified: 2014-03-17 02:21 UTC (History)
1 user (show)

(edit)
Clone Of:
(edit)
Last Closed: 2001-07-04 08:43:04 UTC


Attachments (Terms of Use)

Description david avery 2001-07-04 08:43:01 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.3-12 i686)

Description of problem:
using initscripts-5.96-1.i386.rpm  from rawhide - ifup-ppp fails with
"error 1"

/var/logs/messages shows:

ifup-ppp: /usr/sbin/adsl-start does not exist or is not executable for ppp0

ifup-ppp line 50+ read:
# check that xDSL connection
if [ "$TYPE" = "xDSL" -a -x /usr/sbin/adsl-start ] ; then
    adsl-start "$ETH" "$USER" /etc/sysconfig/network-scripts/$CONFIG
    exit $?
else
    logger -p daemon.info -t ifup-ppp \
        $"/usr/sbin/adsl-start does not exist or is not executable for
${DEVICE}"
    exit 1
fi

the else case will execute in the case of not xDSL which is incorrect 

this shoudl be:

# check that xDSL connection
if [ "$TYPE" = "xDSL"] ; then
if [-x /usr/sbin/adsl-start ] ; then
    adsl-start "$ETH" "$USER" /etc/sysconfig/network-scripts/$CONFIG
    exit $?
else
    logger -p daemon.info -t ifup-ppp \
        $"/usr/sbin/adsl-start does not exist or is not executable for
${DEVICE}"
    exit 1
fi
fi



How reproducible:
Always

Steps to Reproduce:
1.install initscripts-5.96 on a system without adsl support
2.as root do: ifup-ppp
3.
	

Additional info:

Comment 1 Bill Nottingham 2001-07-06 03:24:39 UTC
will be fixed in 5.99-1, thanks!


Note You need to log in before you can comment on or make changes to this bug.