[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ip-down does not stop ip-up's "run-parts" on disconnect



> 
> Hi,
> 
> ip-down does not stop ip-up.d's "run-parts"
> 

WHy not attack this the other way.  If the device goes down while
we are still running ip-up scripts, let the scripts fail.

something like:

if ppp0 works || exit 0
do script work

That way, your ip-down scripts can run and not care.

Possible way to check this is via ifconfig or maybe ping.


Reply to: