From 157448f53f55351958035f5f703f5bcf3d156f56 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