dotfiles/examples/shell/openwrt/disable_leds_tplinkarcher.sh

12 lines
295 B
Bash
Raw Permalink Normal View History

#!/bin/sh
# 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/leds -name brightness`
do
echo 0 > $p
done