From 7c885facb370f4837bdcb3f32498926b8372d77b Mon Sep 17 00:00:00 2001 From: Jakub Filo Date: Thu, 9 Sep 2021 21:14:58 +0000 Subject: [PATCH] Add 'examples/shell/openwrt/disable_leds_tplinkarcher.sh' --- examples/shell/openwrt/disable_leds_tplinkarcher.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 examples/shell/openwrt/disable_leds_tplinkarcher.sh diff --git a/examples/shell/openwrt/disable_leds_tplinkarcher.sh b/examples/shell/openwrt/disable_leds_tplinkarcher.sh new file mode 100644 index 0000000..a133cb6 --- /dev/null +++ b/examples/shell/openwrt/disable_leds_tplinkarcher.sh @@ -0,0 +1,10 @@ +#!/bin/sh +for p in `find /sys/devices/platform/leds-gpio/leds -name trigger` +do + echo none > $p +done + +for p in `find /sys/devices/platform/leds-gpio/leds -name brightness` +do + echo 0 > $p +done