Scott & List
Thanks everyone,
At 06:40 03.07.2004, freeman groups wrote:
Via BEEP.LRP my Bering 1.2 box makes lovely, helpful sounds (hint, hint :)
Won't help much, as my hardware is an embedded system without a speaker, but thanks
when the link goes up & down. This happens from within scripts /etc/ppp/ip_up & /etc/ppp/ip-down so AFAICT you should be able to get notification via these scripts.
I don't have an ip_ip.d nor an ip_down.d ... I am using the stock PPP.LRP & PPPOE.LRP packages ... so maybe you're talking apples and I'm eating oranges?
Mhhhh... this is from Bering 1.2 ppp.lrp
tar tzf ppp.lrp ... etc/ppp/ip-down.d/ etc/ppp/ip-up.d/ ...
My DSL modem is configured to be a pass-thru bridge, so all the PPP/PPPOE brains lie within my LEAF box.
So is mine, basically what I want to achieve is
- get notification on the dsl link status - get information on IP address
One possible way that you can check for the up/down status is to see if your defaultroute has disappeared, something like (pseudocode):
if ( ip route | grep "default" ) = "" then
link is down...
else
link is up...
endif
Oh, I forgot to mention... without polling :-(
But as John Desmond pointed out, it might be a missing path problem. All I did until now is to place a logger call in a script placed in /etc/ppp/ip-up.d and /etc/ppp/ip-down.d which would log the event.
Thanks everyone Erich
THINK Püntenstrasse 39 8143 Stallikon mailto:[EMAIL PROTECTED] PGP Fingerprint: BC9A 25BC 3954 3BC8 C024 8D8A B7D4 FF9D 05B8 0A16
------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ------------------------------------------------------------------------ leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html