diff --git a/amd-vendor-reset.plg b/amd-vendor-reset.plg index a7a574b..db5fe8e 100644 --- a/amd-vendor-reset.plg +++ b/amd-vendor-reset.plg @@ -6,7 +6,7 @@ - + ]> @@ -18,10 +18,6 @@ - -https://raw.githubusercontent.com/ich777/docker-templates/master/ich777/images/gnif.png - - **AMD Vendor-Reset** @@ -50,6 +46,10 @@ fi #Check for old packages 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 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 @@ -106,6 +106,14 @@ else echo 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 +