From 1f539491892f0a47788fa5016df0022033838a10 Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Mon, 3 Aug 2026 11:56:45 +1000 Subject: [PATCH] Update script version and M.2 card database file search v3.6.137 - Bug fix for the wrong E10M20-T1, M2D20, M2D18 and M2D17 db files getting processed if the main drives were migrated from a different Synology model. --- 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 9b6eef1..427a7cd 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.136" +scriptver="v3.6.137" script=Synology_HDD_db repo="007revad/Synology_HDD_db" scriptname=syno_hdd_db @@ -1469,8 +1469,8 @@ readarray -t eunitdb2list < <(find_eunit_db_files "$dbpath" ".db.new" "${eunits[ # M.2 Card db files for i in "${!m2cards[@]}"; do - m2card_db1=$(find "$dbpath" -maxdepth 1 -name "*_${m2cards[i],,}*.db") - m2card_db2=$(find "$dbpath" -maxdepth 1 -name "*_${m2cards[i],,}*.db.new") + m2card_db1=$(find "$dbpath" -maxdepth 1 -name "${model}_${m2cards[i],,}*.db") + m2card_db2=$(find "$dbpath" -maxdepth 1 -name "${model}_${m2cards[i],,}*.db.new") [[ -n "$m2card_db1" ]] && m2carddb1list+=("$m2card_db1") [[ -n "$m2card_db2" ]] && m2carddb2list+=("$m2card_db2") done