Browse Source

Update syno_hdd_db.sh

- Installs IronWolf Health Management on '22 series and newer models that don't have IronWolf Health Management (untested).
pull/414/head
Dave Russell 12 months ago
committed by GitHub
parent
commit
e4977afadd
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 10
      syno_hdd_db.sh

10
syno_hdd_db.sh

@ -2265,6 +2265,15 @@ if [[ $platform_name == "x86_64" ]]; then
echo -e "\nSupport IronWolf Health Management already enabled." echo -e "\nSupport IronWolf Health Management already enabled."
fi fi
if [[ ! -f /usr/syno/sbin/dhm_tool ]]; then
# Install dhm_tool on models without it ('22 series and newer)
# Untested
md5hash="cf67c1d5006913297f85ca7f9d1795ba"
branch="main"
file_url="https://raw.githubusercontent.com/${repo}/${branch}/bin/dhm_tool"
# install_binfile <file> <file-url> <destination> <chmod> <bundled-path> <hash>
install_binfile dhm_tool "$file_url" /usr/syno/sbin/dhm_tool "a+x" bin/dhm_tool "$md5hash"
else
# Check if dhm_tool needs updating # Check if dhm_tool needs updating
dhm_version="$(dhm_tool --version | grep "Utility Version" | awk '{print $NF}')" dhm_version="$(dhm_tool --version | grep "Utility Version" | awk '{print $NF}')"
if ! printf "%s\n%s\n" "2.5.1" "$dhm_version" | if ! printf "%s\n%s\n" "2.5.1" "$dhm_version" |
@ -2291,6 +2300,7 @@ if [[ $platform_name == "x86_64" ]]; then
echo "IronWolf Health Management already updated." echo "IronWolf Health Management already updated."
fi fi
fi fi
fi
fi fi

Loading…
Cancel
Save