TL-WR1043ND and PPPoE notification

Report problems and success stories with Gargoyle on various hardware platforms.

Moderator: Moderators

Post Reply
.//Hack
Posts: 5
Joined: Mon May 28, 2012 3:47 pm

TL-WR1043ND and PPPoE notification

Post by .//Hack »

Hello!
Before I have D-Link DIR-615. And it have very good function which notify when router connected via pppoe. It possibe for TL-WR1043ND?

I think try next:
ping internet (example google) every n seconds. And if ping is successful then QSS led on, if connect lost then QSS led off.

.//Hack
Posts: 5
Joined: Mon May 28, 2012 3:47 pm

Re: TL-WR1043ND and PPPoE notification

Post by .//Hack »

I resolve it without ping

Code: Select all

while [ true ]; do
        IP=$(ifconfig | grep "addr.*P-t-P.*Mask" | cut -d : -f2 | cut -d ' ' -f1 | awk '{print length($0)}')
        [ "$IP" -gt 0 ] && echo 1 > /sys/class/leds/tl-wr1043nd:green:qss/brightness
        [ "$IP" -gt 0 ] || echo 0 > /sys/class/leds/tl-wr1043nd:green:qss/brightness
        sleep 10
done
And add it to boot

Post Reply