sniktaw
September 24, 2021, 11:07am
1
GL-MT300N-V2, 3.02 with OpenWrt 19.07.7
Trying to configure the middle LED through LUCI to show USB Tethering 4G connected or simply internet traffic detected.
I've tried: netdev, 4g-wan (custom entry in the hope it was the equivalent of 3g-wan as documented) with link, transmit and receive set
and even: usbport, device connected
to no avail. Can anyone offer some guidance?
frollic
September 24, 2021, 11:22am
2
This is originally what I'm using. I don't know if the service part is written up to par. I did have a hotplug script starting the ping script but I could be using one of 3 wans. I could just put all 3 wan interfaces in the hot plug but I wanted to try something a little more "universal". Maybe with the logic of:
if $ACTION = ifup; then
get list a 'wans' from firewall config (uci get firewall.cfg03dc81.network)
if $INTERFACE = ANY of those in the list of wans; then
check is service is r…
the led path is device specific, you'll have to figure out the one valid for your device.
sniktaw
September 24, 2021, 11:54am
3
really appreciate your prompt response however I fear this is beyond me. Was hoping I could achieve something through the LUCI interface ;o)
frollic
September 24, 2021, 12:12pm
4
the script I pointed to simply sets the color of the LED if the link's up or down, not when there's data transferred. Might not be what you were looking for, in the 1st place.
sniktaw
September 24, 2021, 12:42pm
5
OK, so maybe what I do is use the Trigger netdev and monitor the Trigger Modes: Transmit & Receive
I have the Device options:
Any idea which to slect for 4G or even WAn assuming when 4G USB tethering is in use it is WAN?
I'll set and try usb0 in the interim to see if that does it ;o) - happy to report IT WORKS!
1 Like