Browse Source
Update syno_hdd_db.sh
v3.5.104
- Bug fix for drives that return "HCST <model>" as the model, like HGST drives do. Issue #389
pull/390/head
Dave Russell
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
4 additions and
1 deletions
-
syno_hdd_db.sh
|
|
@ -29,7 +29,7 @@ |
|
|
# /var/packages/StorageManager/target/ui/storage_panel.js |
|
|
# /var/packages/StorageManager/target/ui/storage_panel.js |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
scriptver="v3.5.103" |
|
|
scriptver="v3.5.104" |
|
|
script=Synology_HDD_db |
|
|
script=Synology_HDD_db |
|
|
repo="007revad/Synology_HDD_db" |
|
|
repo="007revad/Synology_HDD_db" |
|
|
scriptname=syno_hdd_db |
|
|
scriptname=syno_hdd_db |
|
|
@ -884,6 +884,9 @@ fixdrivemodel(){ |
|
|
hdmodel=${hdmodel#"HGST "} # Remove "HGST " from start of model name |
|
|
hdmodel=${hdmodel#"HGST "} # Remove "HGST " from start of model name |
|
|
hdmodel=${hdmodel#"TOSHIBA "} # Remove "TOSHIBA " 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 |
|
|
# Old drive brands |
|
|
hdmodel=${hdmodel#"Hitachi "} # Remove "Hitachi " from start of model name |
|
|
hdmodel=${hdmodel#"Hitachi "} # Remove "Hitachi " from start of model name |
|
|
hdmodel=${hdmodel#"SAMSUNG "} # Remove "SAMSUNG " from start of model name |
|
|
hdmodel=${hdmodel#"SAMSUNG "} # Remove "SAMSUNG " from start of model name |
|
|
|