Closed ich777 closed 5 months ago
The changes are untested since I have no hardware on hand but I tried to make it a bit more efficient and flexible, hope that's something you can work with. Of course if you don't like it or want to change something please change.
Thanks! I fixed some bugs in the smart checking loop.
It looks good, and I will try it in these days.
@miskcoo I've pushed two changes, feel free to change or remove them if they are not what you have in mind.
The plugin is basically done but I have to wait for a few changes that I can compile the first driver package: https://github.com/ich777/unraid-ugreenleds-driver
mapping_method
,CHECK_SMART
&CHECK_SMART_INTERVAL
otherwise use default valuesCHECK_SMART
to false if file/etc/unraid-release
is found (unRAID specific since it check on it's own for smart errors)LED_REFRESH_INTERVAL
for while looopzpool-leds.sh
in a variable to make the while loop a bit more efficient/sys/class/leds/$led/color
and set color <- I'm not too sure about that one but this path should always exist correct?