From 67dde6623d7b7210eec3931394273426ba06516c Mon Sep 17 00:00:00 2001 From: 007revad <39733752+007revad@users.noreply.github.com> Date: Wed, 17 Jun 2026 04:11:10 +1000 Subject: [PATCH] v3.6.131 --- CHANGES.txt | 3 +++ syno_hdd_db.sh | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index a7b544a..0bb3348 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,6 @@ +v3.6.131 +- Fix for DSM 7.4 including "rules" db files in drive db file folder. + v3.6.130 - Bug fix for Samsung SSDs that have 2.5" in their model name. - Bug fix for not removing leading spaces in drive model names (introduced in v3.6.123). diff --git a/syno_hdd_db.sh b/syno_hdd_db.sh index 3d88a7b..5b9e783 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.130" +scriptver="v3.6.131" script=Synology_HDD_db repo="007revad/Synology_HDD_db" scriptname=syno_hdd_db @@ -738,7 +738,7 @@ set_writemostly(){ # Restore changes from backups if [[ $restore == "yes" ]]; then - readarray -t dbbakfiles < <(find "$dbpath" -maxdepth 1 \( -name "*.db.new.bak" -o -name "*.db.bak" \) | sort) + readarray -t dbbakfiles < <(find "$dbpath" -maxdepth 1 \( -name "*.db.new.bak" -o -name "*.db.bak" \) ! -name "rule_*" | sort) echo "" if [[ ${#dbbakfiles[@]} -gt "0" || -f ${synoinfo}.bak ||\ @@ -1362,8 +1362,8 @@ fi # Check databases and add our drives if needed # Host db files -readarray -t db1list < <(find "$dbpath" -maxdepth 1 -name "*_host*.db" | sort) -readarray -t db2list < <(find "$dbpath" -maxdepth 1 -name "*_host*.db.new" | sort) +readarray -t db1list < <(find "$dbpath" -maxdepth 1 -name "*_host*.db" ! -name "rule_*" | sort) +readarray -t db2list < <(find "$dbpath" -maxdepth 1 -name "*_host*.db.new" ! -name "rule_*" | sort) # Expansion Unit db files for i in "${eunits[@]}"; do