Add MemryX Driver Plugin
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
# Plugin Update Helper by ich777 for unRAID
|
# Plugin Update Helper by ich777 for unRAID
|
||||||
# Plugin-Update-Helper version: 2025.03.25
|
# Plugin-Update-Helper version: 2025.04.28
|
||||||
#
|
#
|
||||||
# Currently supported Plugins:
|
# Currently supported Plugins:
|
||||||
# AMD-Vendor-Reset: https://github.com/ich777/unraid-amd-vendor-reset
|
# AMD-Vendor-Reset: https://github.com/ich777/unraid-amd-vendor-reset
|
||||||
@@ -19,6 +19,7 @@
|
|||||||
# asustor Platfrom Drivers: https://github.com/Terebi42/unraid-asustor-pfd
|
# asustor Platfrom Drivers: https://github.com/Terebi42/unraid-asustor-pfd
|
||||||
# UGREEN LED Driver: https://github.com/ich777/unraid-ugreenleds-driver
|
# UGREEN LED Driver: https://github.com/ich777/unraid-ugreenleds-driver
|
||||||
# Hailo RT Driver: https://github.com/ich777/unraid-hailort-driver
|
# Hailo RT Driver: https://github.com/ich777/unraid-hailort-driver
|
||||||
|
# MemryX Driver: https://github.com/ich777/unraid-memryx-driver
|
||||||
|
|
||||||
if [ ! -f /boot/changes.txt ]; then
|
if [ ! -f /boot/changes.txt ]; then
|
||||||
/usr/local/emhttp/plugins/dynamix/scripts/notify -e "Plugin Update Helper" -d "Error: Plugin Update Helper can't start! Can't find file /boot/changes.txt" -i "alert"
|
/usr/local/emhttp/plugins/dynamix/scripts/notify -e "Plugin Update Helper" -d "Error: Plugin Update Helper can't start! Can't find file /boot/changes.txt" -i "alert"
|
||||||
@@ -679,6 +680,33 @@ do
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -f "/boot/config/plugins/memryx-driver.plg" ]; then
|
||||||
|
PLUGIN_NAME="MemryX Driver"
|
||||||
|
PACKAGE="memryx"
|
||||||
|
DL_URL="https://github.com/ich777/unraid-memryx-driver/releases/download/${NEW_KERNEL_V%%-*}-Unraid"
|
||||||
|
LAT_PACKAGE="$(wget -qO- https://api.github.com/repos/ich777/unraid-memryx-driver/releases/tags/${NEW_KERNEL_V%%-*}-Unraid | jq -r '.assets[].name' | grep "${PACKAGE}" | grep -E -v '\.md5$' | sort -V | tail -1)"
|
||||||
|
if [ -z "${LAT_PACKAGE}" ]; then
|
||||||
|
sleep 2
|
||||||
|
LAT_PACKAGE="$(wget -qO- https://api.github.com/repos/ich777/unraid-memryx-driver/releases/tags/${NEW_KERNEL_V%%-*}-Unraid | jq -r '.assets[].name' | grep "${PACKAGE}" | grep -E -v '\.md5$' | sort -V | tail -1)"
|
||||||
|
fi
|
||||||
|
mkdir -p "/boot/config/plugins/memryx-driver/packages/${NEW_KERNEL_V%%-*}"
|
||||||
|
if wget -q -nc -O "/boot/config/plugins/memryx-driver/packages/${NEW_KERNEL_V%%-*}/${LAT_PACKAGE}" "${DL_URL}/${LAT_PACKAGE}" 2>/dev/null ; then
|
||||||
|
wget -q -nc -O "/boot/config/plugins/memryx-driver/packages/${NEW_KERNEL_V%%-*}/${LAT_PACKAGE}.md5" "${DL_URL}/${LAT_PACKAGE}.md5"
|
||||||
|
if [ "$(md5sum /boot/config/plugins/memryx-driver/packages/${NEW_KERNEL_V%%-*}/${LAT_PACKAGE} | awk '{print $1}')" != "$(cat /boot/config/plugins/memryx-driver/packages/${NEW_KERNEL_V%%-*}/${LAT_PACKAGE}.md5 | awk '{print $1}')" ]; then
|
||||||
|
/usr/local/emhttp/plugins/dynamix/scripts/notify -e "Plugin Update Helper" -d "${PLUGIN_NAME} download failed: Checksum Error!" -i "alert"
|
||||||
|
rm -rf /boot/config/plugins/memryx-driver/packages/${NEW_KERNEL_V%%-*}/${LAT_PACKAGE}*
|
||||||
|
ERROR+="${PLUGIN_NAME}, "
|
||||||
|
else
|
||||||
|
/usr/local/emhttp/plugins/dynamix/scripts/notify -e "Plugin Update Helper" -d "${PLUGIN_NAME} download successful!"
|
||||||
|
rm -rf $(ls -d /boot/config/plugins/memryx-driver/packages/* | grep -v "${NEW_KERNEL_V%%-*}")
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
/usr/local/emhttp/plugins/dynamix/scripts/notify -e "Plugin Update Helper" -d "${PLUGIN_NAME} download failed, please go to the support thread for this plugin and make a post with a screenshot from this error!" -i "alert"
|
||||||
|
rm -rf /boot/config/plugins/memryx-driver/packages/${NEW_KERNEL_V%%-*}/${LAT_PACKAGE}*
|
||||||
|
ERROR+="${PLUGIN_NAME}, "
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
sleep 2
|
sleep 2
|
||||||
if [ -z "${ERROR}" ]; then
|
if [ -z "${ERROR}" ]; then
|
||||||
/usr/local/emhttp/plugins/dynamix/scripts/notify -e "Plugin Update Helper" -d "Everything done, please reboot to install unRAID v${NEW_UNRAID_V}!" -l "Main"
|
/usr/local/emhttp/plugins/dynamix/scripts/notify -e "Plugin Update Helper" -d "Everything done, please reboot to install unRAID v${NEW_UNRAID_V}!" -l "Main"
|
||||||
|
Reference in New Issue
Block a user