http://qa.mandrakesoft.com/show_bug.cgi?id=6038





------- Additional Comments From [EMAIL PROTECTED]  2003-02-10 12:19 -------
this is an initscripts bug, can u change the product name ? 

-- 
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.


------- Reminder: -------
assigned_to: [EMAIL PROTECTED]
status: UNCONFIRMED
creation_date: 
description: 
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 ".

Reply via email to