From 310846207480e9b7bd89ba4fe6057a4a55d4289f Mon Sep 17 00:00:00 2001 From: 007revad <39733752+007revad@users.noreply.github.com> Date: Mon, 27 Mar 2023 06:08:58 +1100 Subject: [PATCH] Update syno_hdd_db.sh Fixed bug in getting the M.2 card model. --- syno_hdd_db.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syno_hdd_db.sh b/syno_hdd_db.sh index 8282112..88cc470 100644 --- a/syno_hdd_db.sh +++ b/syno_hdd_db.sh @@ -413,7 +413,7 @@ for d in /sys/block/*; do if [[ $m2 != "no" ]]; then getm2info "$d" "nvme" # Get M.2 card model if in M.2 card - getcardmodel "/dev/$d" + getcardmodel "/dev/$(basename -- "${d}")" fi fi ;; @@ -423,7 +423,7 @@ for d in /sys/block/*; do if [[ $m2 != "no" ]]; then getm2info "$d" "nvc" # Get M.2 card model if in M.2 card - getcardmodel "/dev/$d" + getcardmodel "/dev/$(basename -- "${d}")" fi fi ;;