007revad
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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 |
|
|
|
|