ugreenleds-driver.plg aktualisiert

This commit is contained in:
2024-06-28 20:11:50 +02:00
parent 74906e3e76
commit 421982e8fc

View File

@@ -2,7 +2,8 @@
<!DOCTYPE PLUGIN [ <!DOCTYPE PLUGIN [
<!ENTITY name "ugreenleds-driver"> <!ENTITY name "ugreenleds-driver">
<!ENTITY author "ich777"> <!ENTITY author "ich777">
<!ENTITY version "2024.06.27"> <!ENTITY version "2024.06.28">
<!ENTITY md5 "002717c85d93ef4565c55290b473fb77">
<!ENTITY i2c-version "4.3"> <!ENTITY i2c-version "4.3">
<!ENTITY i2c-md5 "779c835a2eb2e2ae65319f8de2d6a7d3"> <!ENTITY i2c-md5 "779c835a2eb2e2ae65319f8de2d6a7d3">
<!ENTITY gitURL "https://github.com/&author;/unraid-&name;/raw/master"> <!ENTITY gitURL "https://github.com/&author;/unraid-&name;/raw/master">
@@ -14,9 +15,13 @@
<PLUGIN name="&name;" author="&author;" version="&version;" pluginURL="&pluginURL;" min="7.0.0-beta.0.1" support="https://forums.unraid.net/topic/92865-support-ich777-amd-vendor-reset-coraltpu-hpsahba/"> <PLUGIN name="&name;" author="&author;" version="&version;" pluginURL="&pluginURL;" min="7.0.0-beta.0.1" support="https://forums.unraid.net/topic/92865-support-ich777-amd-vendor-reset-coraltpu-hpsahba/">
<CHANGES> <CHANGES>
###2024.06.28
- Unteather ugreen-leds script from driver package
- Add support for DX4700 - thanks miskcoo
- Add support for DXP2800 - thanks miskcoo
###2024.06.27 ###2024.06.27
- Bugfixes for HDD LEDs - Bugfixes for HDD LEDs
- Add DXP480T and set LED to static white - Add DXP480T and set LED to static white
@@ -30,6 +35,18 @@
</CHANGES> </CHANGES>
<FILE Run="/bin/bash">
<INLINE>
kill $(pgrep -f "/usr/bin/ugreen-leds") >/dev/null 2>&amp;1
rm -f $(ls &plugin;/&name;-*.txz 2>/dev/null|grep -v '&version;')
</INLINE>
</FILE>
<FILE Name="&plugin;/&name;-&version;.txz" Run="upgradepkg --install-new">
<URL>&gitURL;/packages/&name;-&version;.txz</URL>
<MD5>&md5;</MD5>
</FILE>
<FILE Run="/bin/bash"> <FILE Run="/bin/bash">
<INLINE> <INLINE>
rm -f $(ls &plugin;/i2c-tools-*-x86_64-1.txz 2>/dev/null|grep -v '&i2c-version;') rm -f $(ls &plugin;/i2c-tools-*-x86_64-1.txz 2>/dev/null|grep -v '&i2c-version;')
@@ -212,7 +229,7 @@ echo "-----Uninstalling UGREEN LED Driver-----"
echo "----------------------------------------" echo "----------------------------------------"
kill $(pgrep -f "/usr/bin/ugreen-leds") >/dev/null 2>&amp;1 kill $(pgrep -f "/usr/bin/ugreen-leds") >/dev/null 2>&amp;1
# Remove plugin related files # Remove plugin related files
rm -rf &emhttp; removepkg &name;-&version; >/dev/null 2>&amp;1
rm -rf &plugin; rm -rf &plugin;
rm -rf /usr/bin/ugreen-leds rm -rf /usr/bin/ugreen-leds
echo echo