Dhrubo
January 17, 2025, 11:42am
1
Is there any way to get the default LED functionality on OpenWrt? In stock firmware, when the Internet is up the wan is green else it is orange (red). But In openwrt both remain green.
frollic
January 17, 2025, 11:45am
2
you have to find out the /sys/class paths matching the LEDs on your device.
Right, -z doesn't work for -z 0, only if empty or unset.
Your crontabs can overlap, if the sum of the blocking time (via timeout) exceeds 6 seconds. If you want to execute it more than once every minute, use a loop, /proc/uptime and sleep.
INTERFACE_WAN="this must be the wan interface as shown in network.wan.device"
INTERFACE_WG="this must be the wireguard interface as shown in network.surfshark.device"
TARGET="target address"
TIMEOUT=5
DELAY=6
while true; do
start=$(awk '{ sub(/\..*/, ""…
What do you see when browsing to:
System > LED Configuration