AR-1263 Fix armbian-led-state-save.sh for boards without gpio leds.
This commit is contained in:
parent
6f6d4ba13e
commit
bfa8732477
@ -55,7 +55,7 @@ function store_led() {
|
||||
[[ -f $STATE_PATH ]] && echo -n > $STATE_PATH
|
||||
|
||||
for LED in /sys/class/leds/*; do
|
||||
|
||||
[[ -d "$LED" ]] || continue
|
||||
store_led $LED $STATE_PATH
|
||||
echo >> $STATE_PATH
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user