http://qa.mandrakesoft.com/show_bug.cgi?id=6038
Product: drakxtools
Component: DrakConnect
Summary: /etc/ppp/ip-up.d/ scripts not run
Product: drakxtools
Version: 9.2-16mdk
Platform: PC
OS/Version: All
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: DrakConnect
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
Sorry if this is the wrong product, but rpmdrake doesn't show anyone admitting
to ownership of /etc/ppp/ip-up...
/etc/ppp/ip-up is run by ppp when IP traffic starts flowing on an interface.
Part of what the MDK version is supposed to do is run any scripts in the
/etc/ppp/ip-up.d/ directory. But there appears to be an error in line 28 which
keeps this from happening:
if [ -d /etc/ppp/ip-up.d/ -x /usr/bin/run-parts ]; then
/usr/bin/run-parts /etc/ppp/ip-up.d/
fi
The directory is there, and run-parts is executable, but it's not getting run.
I changed this to
if [ -d /etc/ppp/ip-up.d/ ] && [ -x /usr/bin/run-parts ]; then
/usr/bin/run-parts /etc/ppp/ip-up.d/
fi
and it worked fine. In ip-down, the corresponding statement reads
if [ -d /etc/ppp/ip-down.d/ -a -x /usr/bin/run-parts ]; then
/usr/bin/run-parts /etc/ppp/ip-down.d/
fi
so the problem is probably the missing " -a ".
--
Configure bugmail: http://qa.mandrakesoft.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.