Browse Source

Update syno_hdd_db.sh

pull/157/head
Dave Russell 2 years ago
committed by GitHub
parent
commit
07495d953b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      syno_hdd_db.sh

4
syno_hdd_db.sh

@ -749,10 +749,8 @@ fixdrivemodel(){
getdriveinfo(){
# $1 is /sys/block/sata1 etc
# Skip USB drives
usb=$(grep "$(basename -- "$1")" /proc/mounts | grep "[Uu][Ss][Bb]" | cut -d" " -f1-2)
if [[ ! $usb ]]; then
if [[ ! $usb ]]; then # Skip USB drives
# Get drive model
hdmodel=$(cat "$1/device/model")

Loading…
Cancel
Save