summaryrefslogtreecommitdiffstats
path: root/disable-leds/my-disable-leds
blob: 3e2109365b9ff733f1aa369a7762868e9d25545d (plain)
1
2
3
4
5
6
7
#!/bin/sh
for led in /sys/class/leds/*; do
	if [ -w "$led/trigger" -a -w "$led/brightness" ]; then
		/bin/echo gpio > "$led/trigger"
		/bin/echo 0 > "$led/brightness"
	fi
done
bues.ch cgit interface