From 2f8e86a853363bd8f0cef3a2b8c91d0b9411183e Mon Sep 17 00:00:00 2001 From: Jakub Filo Date: Wed, 24 Aug 2022 08:35:55 +0000 Subject: [PATCH] Updated script to reflect newest OpenWRT's paths --- examples/shell/openwrt/disable_leds_tplinkarcher.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/shell/openwrt/disable_leds_tplinkarcher.sh b/examples/shell/openwrt/disable_leds_tplinkarcher.sh index a133cb6..9b2b034 100644 --- a/examples/shell/openwrt/disable_leds_tplinkarcher.sh +++ b/examples/shell/openwrt/disable_leds_tplinkarcher.sh @@ -1,10 +1,11 @@ #!/bin/sh -for p in `find /sys/devices/platform/leds-gpio/leds -name trigger` +# Put this in rc.local (can be done via LuCI). Avoid using cron or similar hacks for the simple startup task :) +for p in `find /sys/devices/platform/leds/leds -name trigger` do echo none > $p done -for p in `find /sys/devices/platform/leds-gpio/leds -name brightness` +for p in `find /sys/devices/platform/leds/leds -name brightness` do echo 0 > $p done