AR-1263 Fix armbian-led-state-save.sh for boards without gpio leds.

This commit is contained in:
Vyacheslav Bocharov 2022-07-13 20:24:30 +03:00
parent 6f6d4ba13e
commit bfa8732477
No known key found for this signature in database
GPG Key ID: 476858332E6951A5

View File

@ -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