From d1a3f0834a1d8bc55bb2e05e5048dc63a9778d68 Mon Sep 17 00:00:00 2001 From: ich777 Date: Tue, 25 May 2021 17:33:34 +0200 Subject: [PATCH] =?UTF-8?q?=E2=80=9Eamd-vendor-reset.plg=E2=80=9C=20=C3=A4?= =?UTF-8?q?ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- amd-vendor-reset.plg | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) 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 +