From 542d66f1b1d813e1027f9121e52160b4a6f34f87 Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Thu, 21 Dec 2023 10:12:05 +1100 Subject: [PATCH 1/3] Update syno_hdd_db.sh Bug fix for detecting if script is installed on NVMe drive. --- syno_hdd_db.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syno_hdd_db.sh b/syno_hdd_db.sh index 6ba9913..e7e8c18 100644 --- a/syno_hdd_db.sh +++ b/syno_hdd_db.sh @@ -295,7 +295,7 @@ echo "Running from: ${scriptpath}/$scriptfile" # Warn if script located on M.2 drive scriptvol=$(echo "$scriptpath" | cut -d"/" -f2) -vg=$(lvdisplay | grep /volume_"${volume#volume}" | cut -d"/" -f3) +vg=$(lvdisplay | grep /volume_"${scriptvol#volume}" | cut -d"/" -f3) md=$(pvdisplay | grep -B 1 "$vg" | grep /dev/ | cut -d"/" -f3) if cat /proc/mdstat | grep "$md" | grep nvme >/dev/null; then echo "${Yellow}WARNING${Off} Don't store this script on an NVMe volume!" From f836963b6beee2da41c8e243a6f529c5f83eaf51 Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Thu, 21 Dec 2023 10:12:53 +1100 Subject: [PATCH 2/3] Update syno_hdd_db.sh Bug fix for detecting if script is installed on NVMe drive. --- syno_hdd_db.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syno_hdd_db.sh b/syno_hdd_db.sh index e7e8c18..cbea2e7 100644 --- a/syno_hdd_db.sh +++ b/syno_hdd_db.sh @@ -27,7 +27,7 @@ # Now warns if script is located on an M.2 volume. -scriptver="v3.3.71" +scriptver="v3.3.72" script=Synology_HDD_db repo="007revad/Synology_HDD_db" From 866e9c741d6eae4f6eecb12ff067ad1a41698ca1 Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Thu, 21 Dec 2023 10:13:27 +1100 Subject: [PATCH 3/3] Update CHANGES.txt --- CHANGES.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGES.txt b/CHANGES.txt index a6f3d23..b08bdac 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,6 @@ +v3.3.72 +- Bug fix for checking if script located on NVMe drive. + v3.3.71 - Bug fix for enabling creating storage pools in Storage Manager for M.2 drives in PCIe adaptor cards. - Bug fix for not copying syno_hdd_db_vendors.txt to script location when script updates itself.