From 6c4c2c173b4e507f14fff0f2fc9cd158cdc05dac Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Wed, 4 Dec 2024 09:04:07 +1100 Subject: [PATCH 1/6] Update syno_hdd_db.sh v3.5.104 - Bug fix for drives that return "HCST " as the model, like HGST drives do. Issue #389 --- syno_hdd_db.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/syno_hdd_db.sh b/syno_hdd_db.sh index a24bd81..1f75d2a 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.5.103" +scriptver="v3.5.104" script=Synology_HDD_db repo="007revad/Synology_HDD_db" scriptname=syno_hdd_db @@ -884,6 +884,9 @@ fixdrivemodel(){ hdmodel=${hdmodel#"HGST "} # Remove "HGST " from start of model name hdmodel=${hdmodel#"TOSHIBA "} # Remove "TOSHIBA " from start of model name + # Chinese brand? + hdmodel=${hdmodel#"HCST "} # Remove "HCST " from start of model name + # Old drive brands hdmodel=${hdmodel#"Hitachi "} # Remove "Hitachi " from start of model name hdmodel=${hdmodel#"SAMSUNG "} # Remove "SAMSUNG " from start of model name From 99c936e70c6d2a2b31721d74d1c979434a2874e0 Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Wed, 4 Dec 2024 09:04:15 +1100 Subject: [PATCH 2/6] Update CHANGES.txt --- CHANGES.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGES.txt b/CHANGES.txt index ca73297..e8fd9c4 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,6 @@ +v3.5.104 +- Bug fix for drives that return "HCST " as the model, like HGST drives do. Issue #389 + v3.5.103 - Bug fix getting size of large drives. Issue #368 - Run the script once with the --restore option to undue the previous changes then run the script as normal. From 6337f1b7fbb0585873bbf500cfeab83fbbd7a2c0 Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Wed, 4 Dec 2024 09:09:45 +1100 Subject: [PATCH 3/6] Update CHANGES.txt --- CHANGES.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index e8fd9c4..44350e8 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,6 +1,9 @@ -v3.5.104 +v3.5.105 - Bug fix for drives that return "HCST " as the model, like HGST drives do. Issue #389 +v3.5.104 +- Some disks will be blocked in special scenarios. PR #387 + v3.5.103 - Bug fix getting size of large drives. Issue #368 - Run the script once with the --restore option to undue the previous changes then run the script as normal. From ae48216104423d0e9c9f2b029ea9d5420f6dfbf9 Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Wed, 4 Dec 2024 09:19:12 +1100 Subject: [PATCH 4/6] Update CHANGES.txt --- CHANGES.txt | 3 --- 1 file changed, 3 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 44350e8..17f7110 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,6 +1,3 @@ -v3.5.105 -- Bug fix for drives that return "HCST " as the model, like HGST drives do. Issue #389 - v3.5.104 - Some disks will be blocked in special scenarios. PR #387 From ad280ec93ab31212575182c838da36be36d2eeae Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Wed, 4 Dec 2024 09:21:11 +1100 Subject: [PATCH 5/6] Update CHANGES.txt --- CHANGES.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGES.txt b/CHANGES.txt index 17f7110..44350e8 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,6 @@ +v3.5.105 +- Bug fix for drives that return "HCST " as the model, like HGST drives do. Issue #389 + v3.5.104 - Some disks will be blocked in special scenarios. PR #387 From bcfa4d276539e0e4b2851a1a7ea7a03d34b256b8 Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Wed, 4 Dec 2024 09:30:56 +1100 Subject: [PATCH 6/6] Update syno_hdd_db.sh --- syno_hdd_db.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/syno_hdd_db.sh b/syno_hdd_db.sh index c194a3b..7264a9f 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.5.104" +scriptver="v3.5.105" script=Synology_HDD_db repo="007revad/Synology_HDD_db" scriptname=syno_hdd_db @@ -885,7 +885,7 @@ fixdrivemodel(){ hdmodel=${hdmodel#"TOSHIBA "} # Remove "TOSHIBA " from start of model name # Chinese brand? - hdmodel=${hdmodel#"HCST "} # Remove "HCST " from start of model name + hdmodel=${hdmodel#"HCST "} # Remove "HCST " from start of model name. Issue #389 # Old drive brands hdmodel=${hdmodel#"Hitachi "} # Remove "Hitachi " from start of model name @@ -935,7 +935,7 @@ getdriveinfo(){ # Get drive GB size size_gb=$(get_size_gb "$1") - if [ -n "$size_gb" ]; then + if [[ -n "$size_gb" ]]; then # PR #187 if [[ $hdmodel ]] && [[ $fwrev ]]; then if /usr/syno/bin/synodisk --enum -t cache | grep -q /dev/"$(basename -- "$1")"; then # Is SATA M.2 SSD