„amd-vendor-reset.plg“ ändern

This commit is contained in:
ich777 2021-05-25 17:33:34 +02:00
parent a1591fef22
commit d1a3f0834a

View File

@ -6,7 +6,7 @@
<!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unraid-amd-vendor-reset/master"> <!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unraid-amd-vendor-reset/master">
<!ENTITY pluginURL "&gitURL;/amd-vendor-reset.plg"> <!ENTITY pluginURL "&gitURL;/amd-vendor-reset.plg">
<!ENTITY plugin "/boot/config/plugins/amd-vendor-reset"> <!ENTITY plugin "/boot/config/plugins/amd-vendor-reset">
<!ENTITY emhttp "/usr/local/emhttp/plugins/amd-vendor-reset"> <!ENTITY emhttp "/usr/local/emhttp/plugins/AMD-Vendor-Reset">
]> ]>
<PLUGIN name="&name;" author="&author;" version="&version;" pluginURL="&pluginURL;" min="6.10.0-beta17"> <PLUGIN name="&name;" author="&author;" version="&version;" pluginURL="&pluginURL;" min="6.10.0-beta17">
@ -18,10 +18,6 @@
</CHANGES> </CHANGES>
<FILE Name="&emhttp;/images/amd-vendor-reset.png">
<URL>https://raw.githubusercontent.com/ich777/docker-templates/master/ich777/images/gnif.png</URL>
</FILE>
<FILE Name="&emhttp;/README.md"> <FILE Name="&emhttp;/README.md">
<INLINE> <INLINE>
**AMD Vendor-Reset** **AMD Vendor-Reset**
@ -50,6 +46,10 @@ fi
#Check for old packages #Check for old packages
rm -rf $(ls -d &plugin;/packages/* | grep -v "${KERNEL_V%%-*}") rm -rf $(ls -d &plugin;/packages/* | grep -v "${KERNEL_V%%-*}")
if [ ! -f "&plugin;/AMD-Vendor-Reset.png" ]; then
wget -q -nc --show-progress --progress=bar:force:noscroll -O "&plugin;/AMD-Vendor-Reset.png" "https://raw.githubusercontent.com/ich777/docker-templates/master/ich777/images/gnif.png"
fi
download() { download() {
#Download vendor-reset #Download vendor-reset
if wget -q -nc --show-progress --progress=bar:force:noscroll -O "&plugin;/packages/${KERNEL_V%%-*}/${PACKAGE}-1.txz" "${DL_URL}/${PACKAGE}-1.txz" ; then if wget -q -nc --show-progress --progress=bar:force:noscroll -O "&plugin;/packages/${KERNEL_V%%-*}/${PACKAGE}-1.txz" "${DL_URL}/${PACKAGE}-1.txz" ; then
@ -106,6 +106,14 @@ else
echo echo
fi fi
#Install icon
if [ -f "&emhttp;/images/AMD-Vendor-Reset.png ]; then
if [ -d "&emhttp;/images" ]; then
mkdir -p &emhttp;/images
fi
cp &plugin;/AMD-Vendor-Reset.png &emhttp;/images/
fi
</INLINE> </INLINE>
</FILE> </FILE>