bchiodini wrote:
>
> Andy Schaefer wrote:
>
> > Hello, I have been running diald on a RH5.2 box for some time now, and I
> > have been really pleased with the results. I would like to be able to
> > execute a script whenever diald is finished completing the connection, and
> > someone had suggested that I put it in the ifup script. I assumed that he
> > meant the /etc/sysconfig/network-scripts/ifup-ppp file. I tried this and
> > it did not seem to work. Any suggestions?
>
> You could define your script as the addroute script in diald.conf:
>
> addroute /etc/diald/myscript
>
> This will run your script after the ppp connection is up and the interface is
> configured.
That wont work unless you put the route adding in there too. When diald
uses an addroute script it expects it to add the routes itself. A better
solution would be defining
if-up /etc/diald/myscript
This way your script will be executed everytime diald completes a
connection. Its non-blocking, diald will not wait for it to termitate
before continuing. The same goes for if-down.
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]