Lantis wrote:lets try the following.
Code: Select all
uci set system.wan=led
uci set system.led.wan.name='WAN'
uci set system.led.wan.sysfs='d-link:amber:planet'
uci set system.led.wan.trigger='netdev'
uci set system.led.dev='eth0.2'
uci set system.led.mode='link tx rx'
uci commit system
/etc/init.d/led start
i don't know if you need to reboot your router for this to take effect. i
think no.
Your planet LED should light up orange if you have a WAN connection. It may blink when traffic flows through it.
Let me know how you go.
As for the LAN port LEDs, my research says that your router doesn't have any, and so does the output of your /sys/class/leds.
Hi Lantis,
Below is the results:
login as: root
root@xxx.xxx.xxx.xxx's password:
BusyBox v1.22.1 (2015-07-16 23:38:01 EDT) built-in shell (ash)
Enter 'help' for a list of built-in commands.
------------------------------------------------------------------
|----------------------------------------------------------------|
| Gargoyle version 1.7.2 | OpenWrt Barrier Breaker branch |
| Gargoyle revision 855c94f | OpenWrt revision r46287 |
| Built July 16, 2015 | Target ar71xx/usb_large |
------------------------------------------------------------------
root@Gargoyle:~# uci set system.wan=led
root@Gargoyle:~# uci set system.led.wan.name='WAN'
uci: Parse error
root@Gargoyle:~# uci set system.led.wan.sysfs='d-link:amber:planet'
uci: Parse error
root@Gargoyle:~# uci set system.led.wan.trigger='netdev'
uci: Parse error
root@Gargoyle:~# uci set system.led.dev='eth0.2'
uci: Invalid argument
root@Gargoyle:~# uci set system.led.mode='link tx rx'
uci: Invalid argument
root@Gargoyle:~# uci commit system
root@Gargoyle:~# /etc/init.d/led start
root@Gargoyle:~#
D-Link DIR-835 Rev. A1 using Gargoyle
1.9.X (Built 20160524-1903 git@004a64c)
TP-Link TL-WR1043ND Ver. 1.6 using Gargoyle
1.9.1
TP-Link TL-WR740N Ver. 1.10 using Gargoyle
1.9.1