From e144b176d8ea0c59c518fe80ee10aa7022db8501 Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Fri, 20 Feb 2026 08:07:18 +1100 Subject: [PATCH 1/2] Add v3.6.123 changes for WD Ultrastar drives Added a new version entry for v3.6.123 with a bug fix for WD Ultrastar drives. --- CHANGES.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGES.txt b/CHANGES.txt index 3005bc8..40da098 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,6 @@ +v3.6.123 +- Bug fix for WD Ultrastar drives that have "WDC " before the model name. Issue #559 + v3.6.122 - Bug fix for drive models with multiple consecutive spaces in model name. Issue #559 - Bug fix for nvme drives with multiple consecutive spaces in firmware version. From b2da9bdb44da3f2aa286cab5afd26da12e672b0b Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Fri, 20 Feb 2026 08:08:02 +1100 Subject: [PATCH 2/2] Update script version to v3.6.123 and improve help text Bug fix for WD Ultrastar drives that have "WDC " before the model name. Issue #559 --- syno_hdd_db.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/syno_hdd_db.sh b/syno_hdd_db.sh index bc33207..4e3041d 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.122" +scriptver="v3.6.123" script=Synology_HDD_db repo="007revad/Synology_HDD_db" scriptname=syno_hdd_db @@ -91,8 +91,9 @@ Options: For NAS with x86_64 CPUs only Installs IHM on '22 series and newer models (untested) --reboot Reboot after a DSM update when build number has changed - Only needed if NVMe volume or PCIe card need a 2nd - reboot after DSM update + Only works if script is running from a boot-up schedule + Only needed if NVMe volume or PCIe card need a 2nd + reboot after DSM update -h, --help Show this help message -v, --version Show the script version @@ -1002,9 +1003,15 @@ fixdrivemodel(){ hdmodel=${hdmodel#"Hitachi "} # Remove "Hitachi " from start of model name hdmodel=${hdmodel#"SAMSUNG "} # Remove "SAMSUNG " from start of model name hdmodel=${hdmodel#"FUJISTU "} # Remove "FUJISTU " from start of model name + + # Remove any leading spaces + var=$(echo "$var" | sed -e 's/^[[:space:]]*//') elif [[ $1 =~ ^'APPLE HDD '.* ]]; then # Old drive brands hdmodel=${hdmodel#"APPLE HDD "} # Remove "APPLE HDD " from start of model name + + # Remove any leading spaces + var=$(echo "$var" | sed -e 's/^[[:space:]]*//') fi }