dotfiles/examples/shell/openwrt/disable_leds_tplinkarcher.sh

11 lines
193 B
Bash

#!/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