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

Re: how to shut pppd in script



Hello,

> The idea is to disconnect from ISP after all scripts in /etc/ppp/ip-up.d/
> are executed.

I do this also. My way is to have a script in ip-up.d, called "zzz-hangup",
which calls "poff" - that way it doesn't have to check anything (the scripts
get done in alphabetical order).

>   kill 'cat /var/run/ppp0.pid'
...
> kill 'cat /var/run/ppp0.pid'

You need backticks (`) in both cases. Like this:

  kill `cat /var/run/ppp0.pid`

However, since poff exists, it's probably better to use that.


HTH

Jiri <jiri@baum.com.au>


Reply to: