From 84fc310592c1c23a1d60fe4f60e507d4df9e8be6 Mon Sep 17 00:00:00 2001 From: 007revad <39733752+007revad@users.noreply.github.com> Date: Mon, 6 Mar 2023 10:54:46 +1100 Subject: [PATCH] Update syno_hdd_db.sh --- syno_hdd_db.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/syno_hdd_db.sh b/syno_hdd_db.sh index 3cb5598..f9c2b8f 100644 --- a/syno_hdd_db.sh +++ b/syno_hdd_db.sh @@ -74,7 +74,7 @@ while getopts "sfn" option; do case ${option,,,} in s) showedits=yes - echo showedits # debug + #echo showedits # debug ;; n) nodbupdate=yes # For future use @@ -168,7 +168,7 @@ for d in `cat /proc/partitions | awk '{print $4}'`; do case "$d" in hd*|sd*) if [[ $d =~ [hs]d[a-z]{1,2}$ ]]; then - echo -e "\n$d" # debug + #echo -e "\n$d" # debug getModel "/dev/$d" getFwVersion "/dev/$d" if [[ $hdmodel ]] && [[ $fwrev ]]; then @@ -178,7 +178,7 @@ for d in `cat /proc/partitions | awk '{print $4}'`; do ;; sas*|sata*) if [[ $d =~ (sas|sata)[0-9][0-9]?[0-9]?$ ]]; then - echo -e "\n$d" # debug + #echo -e "\n$d" # debug getModel "/dev/$d" getFwVersion "/dev/$d" if [[ $hdmodel ]] && [[ $fwrev ]]; then @@ -188,7 +188,7 @@ for d in `cat /proc/partitions | awk '{print $4}'`; do ;; nvme*) if [[ $d =~ nvme[0-9][0-9]?n[0-9][0-9]?$ ]]; then - echo -e "\n$d" # debug + #echo -e "\n$d" # debug n=n$(printf "$d" | cut -d "n" -f 2) getNVMeModel "/sys/class/nvme/$n" getNVMeFwVersion "/sys/class/nvme/$n"