Browse Source

Update syno_hdd_db.sh

develop
007revad 3 years ago
committed by GitHub
parent
commit
96b6a88f32
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      syno_hdd_db.sh

2
syno_hdd_db.sh

@ -151,7 +151,7 @@ getFwVersion() {
if smartctl -i "$1" | grep -i sas >/dev/null; then if smartctl -i "$1" | grep -i sas >/dev/null; then
# hdparm does not work with some SAS drives # hdparm does not work with some SAS drives
fwrev=$(smartctl -i "$1" | grep -i "Firmware Version:" | awk '{print $3}') fwrev=$(smartctl -i "$1" | grep -i "Firmware Version:" | awk '{print $3}')
if [[ ! $hdmodel ]]; then if [[ ! $fwrev ]]; then
fwrev=$(smartctl -i "$1" | grep -i "Revision:" | awk '{print $2}') fwrev=$(smartctl -i "$1" | grep -i "Revision:" | awk '{print $2}')
fi fi
else else

Loading…
Cancel
Save