diff --git a/package/base-files/files/etc/init.d/led b/package/base-files/files/etc/init.d/led index 5130ac7d41b..7f05254c2ba 100755 --- a/package/base-files/files/etc/init.d/led +++ b/package/base-files/files/etc/init.d/led @@ -184,7 +184,12 @@ start() { echo "$color" | sed 's/:/\ /g' > \ "/sys/class/leds/$led/multi_intensity" done < /var/run/led.state - rm /var/run/led.state + if [ "$1" ]; then + grep -v "^$1 " /var/run/led.state > /var/run/led.state.new + mv /var/run/led.state.new /var/run/led.state + else + rm /var/run/led.state + fi } config_load system