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.
TL-WR1043ND and PPPoE notification
Moderator: Moderators
Re: TL-WR1043ND and PPPoE notification
I resolve it without ping
And add it to boot
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