From fef56aba7ff39590d8e794cd1a4d7390696a0c40 Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Tue, 31 Dec 2024 16:19:35 +1100 Subject: [PATCH] Update syno_hdd_db.sh --- syno_hdd_db.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/syno_hdd_db.sh b/syno_hdd_db.sh index d718b7c..e5d43b9 100755 --- a/syno_hdd_db.sh +++ b/syno_hdd_db.sh @@ -264,6 +264,9 @@ modelname="$model" # Get CPU platform_name platform_name=$(/usr/syno/bin/synogetkeyvalue /etc.defaults/synoinfo.conf platform_name) +# Get CPU arch +arch="$(uname -m)" + # Show script version #echo -e "$script $scriptver\ngithub.com/$repo\n" @@ -278,7 +281,7 @@ smallfixnumber=$(/usr/syno/bin/synogetkeyvalue /etc.defaults/VERSION smallfixnum # Show DSM full version and model if [[ $buildphase == GM ]]; then buildphase=""; fi if [[ $smallfixnumber -gt "0" ]]; then smallfix="-$smallfixnumber"; fi -echo "$model $platform_name DSM $productversion-$buildnumber$smallfix $buildphase" +echo "$model $arch DSM $productversion-$buildnumber$smallfix $buildphase" # Convert model to lower case @@ -2252,7 +2255,7 @@ fi # Optionally update IronWolf Health Management -if [[ $platform_name == "x86_64" ]]; then +if [[ $arch == "x86_64" ]]; then if [[ $ihm == "yes" ]]; then setting="$(/usr/syno/bin/synogetkeyvalue $synoinfo support_ihm)" if [[ $setting != "yes" ]]; then