Browse Source

Update syno_hdd_db.sh

Fixed bug in getting the M.2 card model.
pull/40/head
007revad 3 years ago
committed by GitHub
parent
commit
3108462074
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      syno_hdd_db.sh

4
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
;;

Loading…
Cancel
Save