Browse Source

Update syno_hdd_db.sh

Fixed skipping removable drives in DSM 7 on RS2421rp+ to fix issue #23.
pull/34/head
007revad 3 years ago
committed by GitHub
parent
commit
657e0ed3a1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      syno_hdd_db.sh

4
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

Loading…
Cancel
Save