ugreenleds-driver.plg aktualisiert

This commit is contained in:
2024-06-20 09:17:38 +02:00
parent 4a7a47ddc4
commit b349cdb52b

View File

@@ -24,8 +24,7 @@
<INLINE> <INLINE>
**UGREEN LED Driver** **UGREEN LED Driver**
This package contains the UGREEN LED Driver which will allow you to get your LEDs to work on your UGREEN NAS (please note that not all models are supported). This package contains the UGREEN LED Driver which will allow you to get your LEDs to work on your UGREEN NAS (please note that not all models are supported).
The plugin is based on: https://github.com/miskcoo/ugreen_dx4600_leds_controller The plugin is based on: https://github.com/miskcoo/ugreen_dx4600_leds_controller
</INLINE> </INLINE>
</FILE> </FILE>
@@ -106,6 +105,7 @@ fi
if [ ! -f "&plugin;/settings.cfg" ]; then if [ ! -f "&plugin;/settings.cfg" ]; then
echo "MAPPING_METHOD=hctl echo "MAPPING_METHOD=hctl
LED_REFRESH_INTERVAL=0.5" > &plugin;/settings.cfg LED_REFRESH_INTERVAL=0.5" > &plugin;/settings.cfg
fi
# Check for old packages # Check for old packages
rm -rf $(ls -d &packages;/* | grep -v "${KERNEL_V%%-*}") rm -rf $(ls -d &packages;/* | grep -v "${KERNEL_V%%-*}")
@@ -200,7 +200,6 @@ echo "-----Uninstalling UGREEN LED Driver-----"
echo "----------------------------------------" echo "----------------------------------------"
kill $(pgrep -f "/usr/bin/ugreen-diskiomon") >/dev/null 2>&amp;1 kill $(pgrep -f "/usr/bin/ugreen-diskiomon") >/dev/null 2>&amp;1
# Remove plugin related files # Remove plugin related files
removepkg &name;-&version;
rm -rf &emhttp; rm -rf &emhttp;
rm -rf &plugin; rm -rf &plugin;
echo echo