> >   1) mgetty exec'd
...
> 
> But now what happens if the source of the incoming call is the same
> as the destination of the psuedo interface setup for demand dialing ?
> You now have two pppd's configured for the same address ?
> Or does it somehow figure it out ?

  Ouch, sorry, I haven't seen the REAL PROBLEM (tm) in your post. Yes,
I think that it may be really problem. I would suggest using some login
script like the one below.

!UNTESTED CODE! UNTESTED CODE! UNTESTED CODE! UNTESTED CODE! UNTESTED CODE!

##########################################################################

#!/bin/sh
DIP=10.6.66.20 # Destination IP address of demand-dialled link
trap "" HUP
kill "/var/run/`ifconfig|tr '\n' '|'|sed 's/||/~/g'|tr '~' '\n'|grep $IP|cut -f 1 -d ' 
'`.pid"
sleep 1
     /usr/sbin/pppd `tty` $IP: nodetach ...
exec /usr/sbin pppd `tty` $IP: detach demand ...

##########################################################################

-- 
NOT supporting the aggresive NATO military operation in Kosovo.

-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]

Reply via email to