LaRoy McCann wrote on Sat, 08 Jan 2000 10:29:27 -0600:
>I tried using ip-up.local and ip-down.local scripts but they are only run
>when the interface comes up the first time.
>
Not true.
ip-up.local and ip-down.local are run on each connection - even those
initiated by demand.
Put the line
logger -p user.info "in ip-up.local $1 $2 $3 4.$4. $5 $6 $7 $8"
in your ip-up.local file and
logger -p user.info "in ip-down.local $1 $2 $3 4.$4. $5 $6 $7 $8"
in your ip-down.local file and
check your /etc/syslog.conf file to see that messages for user.info go
somewhere useful for you *.
(Check permissions on ip-down.local and ip-up.local files too)
* Then you can monitor the last line of this file to see whether you are up
or down (to be more precise, you may have to change user.info to something
else and then specifically write those messages into a unique file - then
the last line will be only the ip-down or ip-up messages..)
BobG
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]