I am writing to request support for changing the WAN LED to amber when the internet connection is not present in my TP-Link Archer C6 V3 running OpenWRT. I have followed the instructions in the other forums but that didn't seems to be helping me.
I would be grateful if you could provide me with any advice on how I can resolve this issue. If there is any additional information I need to provide, please let me know.
My bad, I thought you wanted to replace the color only. Now that I think about it though, basic communication between your OpenWrt device and the router sitting before it, like DHCP, already triggers tx rx.
Finally guys i've got it working for my tp-link archer c6 v3. Steps for doing it are as follows:
1.You'll need to install the package named "openssh-sftp-server".
2.After installing the packages you've have to sftp into the router "like accessing the routers files" with the help of WinSCP . ### WinSCP
3.Fill in the details like routers ip address and password.
4.You'll need to find this directory "/etc/hotplug.d/iface/".
5.Create a new file named as 30-wanled.
6.Paste my code as i've altered it to work on my router .
#Check WAN Connection
Status=$(ping -q -c 1 -W 1 18.104.22.168 > /dev/null 2>&1 && echo "ok" || echo "FAIL")
if [ "$Status" = "ok" ]; then
echo 0 > /sys/class/leds/orange:wan/brightness
echo 255 > /sys/class/leds/green:wan/brightness
echo 255 > /sys/class/leds/orange:wan/brightness
echo 0 > /sys/class/leds/green:wan/brightness