-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hi Luca,
> I just have to write this:
>
> config led 'led_wlan' option name 'WLAN' option sysfs
> 'tp-link:green:wlan' option default '0' option trigger 'phy0rx'
>
> and it works! Now the LED blinks only if a packet will be
> received.
great that you found a way around it!
But isn't the trigger 'phy0rx' always *off* by default and blinks when
traffic is received whereas 'phy0tpt' is always *on* by default and
blinks when there is traffic (rx/tx) on the interface?
If you want the LED to be always *on* by default and blink on traffic,
you could also use the trigger 'netdev' and select the corresponding
interface.
Check first, whether the kernel module for netdev is installed:
opkg list-installed kmod-ledtrig-netdev
You can installed it with opkg, if it's not installed:
opkg install kmod-ledtrig-netdev
Here is an example of the configuration:
config led 'led_wlan'
option name 'WLAN'
option sysfs 'tp-link:green:wlan'
option default '0'
option trigger 'netdev'
option dev 'wlan0'
option mode 'link tx rx'
This will have the same behaviour as phy0tpt is supposed to have.
If you really want the LED to be *off* by default, you can also just
remove 'link' from the mode option. Here is another example for that:
config led 'led_wlan'
option name 'WLAN'
option sysfs 'tp-link:green:wlan'
option default '0'
option trigger 'netdev'
option dev 'wlan0'
option mode 'tx rx'
With this configuration, the LED will be always *off* by default, but
blinks on *both*, incoming and outgoing traffic.
Regards,
Jannis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCgAGBQJVGXyFAAoJEPhq7SXzn6YcKCwP+wbGGj5QJLjPRqr5k6s07dU9
BxMlYasEY4LpX1OedtIS5xi05z6rFc+8nDcIFeS5feSbpYuHzhbhrIdItdTNLR1Q
w/JTKRGQ5SGlyXyF8KubefZ6xBXm6BEGijibIAwVkx76SrrCikhW60d21beMmxns
BCgOTc+BsaoTX5hDeaTM6TObrtasU78qB1+6FjHFuykJc8YPxzP7M6qaT7bwTknV
QAw/5saguKiC9Vn4sqMd1WmV8l9+wkL2sJUoXTDepQoyIdFF46P9Xb/0MlPdeqHF
SflAr1805jPPf/LTUAXZbC/g/uccQjl+ctfAuJGXRRvB6nqbPNyTpT0kk8NmuL6k
OTOgu2DOg4vwDZ9fWEpEf74JLY3TyVMgIkVVrtMSUimmMwWb1kK+VKv84r+1H3eM
LIQHVxY/F381jOVzcqEbQJVo12X/y5CiW+7mFtZ9xuhvnTcYPdkTJyV7pIlEATHo
oOI7K6uboH+Ya02n07dXHmqM2H2+P70L6p9ZigiiRkObtRalTYc6e6p4iXmnuGkc
Rk8sa0j3KHUe8u/knA0j8ahQqYE4LNVtKk2klfN4fZnknZ7AO6Qo3vptoxHeAYC1
vwKhfzaMvxsxgaTkZupCvKJF9R/x3B0QWtlaFOOY+hjMtyP9Qq1hgY0JB8Y21a/M
n03gxW8Gxs2EbX+XlX33
=8p6w
-----END PGP SIGNATURE-----
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users