Browse Source

Updated script to reflect newest OpenWRT's paths

master
Jakub Filo 7 months ago
parent
commit
157448f53f
  1. 5
      examples/shell/openwrt/disable_leds_tplinkarcher.sh

5
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

Loading…
Cancel
Save