Browse Source
Update syno_hdd_db.sh
- Fixed bug inserting firmware version for already existing model.
pull/49/head
007revad
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
2 deletions
-
syno_hdd_db.sh
|
|
@ -29,6 +29,8 @@ |
|
|
# It's also parsed and checked and probably in some cases it could be more critical to patch that one instead. |
|
|
# It's also parsed and checked and probably in some cases it could be more critical to patch that one instead. |
|
|
|
|
|
|
|
|
# DONE |
|
|
# DONE |
|
|
|
|
|
# Fixed bug inserting firmware version for already existing model. |
|
|
|
|
|
# |
|
|
# Changed to add drives' firmware version to the db files (to support data deduplication). |
|
|
# Changed to add drives' firmware version to the db files (to support data deduplication). |
|
|
# See https://github.com/007revad/Synology_enable_Deduplication |
|
|
# See https://github.com/007revad/Synology_enable_Deduplication |
|
|
# |
|
|
# |
|
|
@ -103,7 +105,7 @@ |
|
|
# Optionally disable "support_disk_compatibility". |
|
|
# Optionally disable "support_disk_compatibility". |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
scriptver="v1.3.32" |
|
|
scriptver="v1.3.33" |
|
|
script=Synology_HDD_db |
|
|
script=Synology_HDD_db |
|
|
repo="007revad/Synology_HDD_db" |
|
|
repo="007revad/Synology_HDD_db" |
|
|
|
|
|
|
|
|
@ -725,7 +727,7 @@ updatedb() { |
|
|
echo "Edit empty db file" |
|
|
echo "Edit empty db file" |
|
|
editdb7 "empty" "$2" |
|
|
editdb7 "empty" "$2" |
|
|
|
|
|
|
|
|
elif grep '"WD40PURX-64GVNY0"' "$2" >/dev/null; then |
|
|
elif grep '"'"$hdmodel"'":' "$2" >/dev/null; then |
|
|
# Replace "WD40PURX-64GVNY0":{ with "WD40PURX-64GVNY0":{"80.00A80":{ ... }}}, |
|
|
# Replace "WD40PURX-64GVNY0":{ with "WD40PURX-64GVNY0":{"80.00A80":{ ... }}}, |
|
|
echo "Insert firmware version" |
|
|
echo "Insert firmware version" |
|
|
editdb7 "insert" "$2" |
|
|
editdb7 "insert" "$2" |
|
|
|