From 657e0ed3a14ef95dedc40bd90d0a1f6306e6e686 Mon Sep 17 00:00:00 2001 From: 007revad <39733752+007revad@users.noreply.github.com> Date: Sat, 25 Mar 2023 11:59:53 +1100 Subject: [PATCH] Update syno_hdd_db.sh Fixed skipping removable drives in DSM 7 on RS2421rp+ to fix issue #23. --- 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 4a92dd1..e880c95 100644 --- a/syno_hdd_db.sh +++ b/syno_hdd_db.sh @@ -326,8 +326,8 @@ fixdrivemodel(){ getdriveinfo() { # Skip removable drives (USB drives) - removable=$(cat "$1/removable") - if [[ $removable == "0" ]]; then + removable=$(cat "$1/removable") # Some DSM 7 RS models return 1 for internal drives! + if [[ $removable == "0" ]] || [[ $dsm -gt "6" ]]; then # Get drive model and firmware version hdmodel=$(cat "$1/device/model") hdmodel=$(printf "%s" "$hdmodel" | xargs) # trim leading and trailing white space