„nct6687-driver.plg“ ändern

This commit is contained in:
2021-03-25 21:16:56 +01:00
parent 24f82ff240
commit e4877ae197

View File

@@ -2,7 +2,7 @@
<!DOCTYPE PLUGIN [
<!ENTITY name "nct6687-driver">
<!ENTITY author "ich777">
<!ENTITY version "2021.03.24">
<!ENTITY version "2021.03.25">
<!ENTITY gitURL "https://github.com/&author;/unraid-&name;/raw/master">
<!ENTITY pluginURL "&gitURL;/&name;.plg">
<!ENTITY plugin "/boot/config/plugins/&name;">
@@ -13,6 +13,9 @@
<CHANGES>
###2021.03.25
- Added wait for network and timout
###2021.03.24
- Integrated icon into package
@@ -44,6 +47,12 @@ KERNEL_V="$(uname -r)"
PACKAGE="nct6687d"
DL_URL="https://github.com/ich777/unraid-plugins-repo/releases/download/$KERNEL_V"
#Wait for Network and timeout after 30 seconds
HOST="8.8.8.8"
for i in {1..10}; do
ping -c1 $HOST &amp;> /dev/null &amp;&amp; break;
done
if [ ! -d "&plugin;/packages/${KERNEL_V%%-*}" ]; then
mkdir -p "&plugin;/packages/${KERNEL_V%%-*}"
fi