From d25dd700b2de7888d1155bff4f379fdaa57a5df5 Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Thu, 12 Feb 2026 15:19:26 +1100 Subject: [PATCH 1/2] Update script version and improve whitespace trimming --- syno_hdd_db.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syno_hdd_db.sh b/syno_hdd_db.sh index fed0553..2bad69d 100644 --- a/syno_hdd_db.sh +++ b/syno_hdd_db.sh @@ -29,7 +29,7 @@ # /var/packages/StorageManager/target/ui/storage_panel.js -scriptver="v3.6.120" +scriptver="v3.6.121" script=Synology_HDD_db repo="007revad/Synology_HDD_db" scriptname=syno_hdd_db @@ -1026,7 +1026,7 @@ getdriveinfo(){ # Get drive model hdmodel=$(cat "$1/device/model") - hdmodel=$(echo "$hdmodel" | sed 's/^[[:space:]]//;s/[[:space:]]$//') # trim leading and trailing white space + hdmodel=$(printf "%s" "$hdmodel" | xargs) # trim leading and trailing white space # Fix dodgy model numbers fixdrivemodel "$hdmodel" From 68ec8ead61b645d46c5b7c5cd000fa00963891b0 Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Thu, 12 Feb 2026 15:23:30 +1100 Subject: [PATCH 2/2] Bump version to v3.6.121 and add --reboot option Updated version number to v3.6.121 and added new option. --- CHANGES.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 11560e8..88e1814 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,8 +1,7 @@ -v3.6.120 +v3.6.121 - Added --reboot option to reboot the NAS after a DSM update where the build number has changed. - Only needed if NVMe volume or PCIe card need a 2nd reboot after DSM update. - Note: This version of the script needs to run once to create the file that tracks the DSM build number. -- Bug fix for drive models with multiple consecutive spaces in model name. Issue #559 v3.6.119 - Bug fix for "cat: /sys/block//sys/block/sata1/device/vendor: No such file or directory" errors. Issue #554