diff --git a/syno_hdd_db.sh b/syno_hdd_db.sh index 781c0ef..e49e8e8 100644 --- a/syno_hdd_db.sh +++ b/syno_hdd_db.sh @@ -151,7 +151,7 @@ getFwVersion() { if smartctl -i "$1" | grep -i sas >/dev/null; then # hdparm does not work with some SAS drives 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}') fi else