On Fri, 18 Jul 2003 11:09:41 +0200
Thorsten Kampe <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I'm stopping pppd in local.stop via "killall pppd"[1] - so the system
> doesn't hang with an "open" ppp connection. Unfortunately killall
> gives an error code != 0 when there is no pppd to be killed and
> therefor local.stop shows two red "!!" (for unsuccesfull).
> 
> This is just somehow cosmetic but how can I avoid this?
> 
> Thorsten
> 
> [1] pppd has no "hangup" like "isdnctrl hangup"
> 
> 
> --
> [EMAIL PROTECTED] mailing list
> 
> 

You could add something like:

PPPDEX=`ps -e | grep pppd`
if [ "$PPPDEX" != "" ];then killall pppd;fi

Hope that helps :-)

--
[EMAIL PROTECTED] mailing list

Reply via email to