Browse Source
Update syno_hdd_db.sh
- Fix for drives that exist in the drive database already but have "compatibility unverified". Issue #224
pull/225/head
Dave Russell
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
8 additions and
3 deletions
-
syno_hdd_db.sh
|
|
|
@ -1114,9 +1114,6 @@ editdb7(){ |
|
|
|
#exit 6 |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
# Edit existing drives in db with compatibility:unverified # Issue #224 |
|
|
|
sed -i 's/unverified/support/g' "$2" |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -1163,6 +1160,14 @@ updatedb(){ |
|
|
|
editdb7 "append" "$2" |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
# Edit existing drives in db with compatibility:unverified # Issue #224 |
|
|
|
if grep 'unverified' "$2" >/dev/null; then |
|
|
|
sed -i 's/unverified/support/g' "$2" |
|
|
|
if ! grep 'unverified' "$2" >/dev/null; then |
|
|
|
echo -e "Edited unverified drives in ${Cyan}$(basename -- "$2")${Off}" >&2 |
|
|
|
fi |
|
|
|
fi |
|
|
|
elif [[ $dbtype -eq "6" ]]; then |
|
|
|
if grep "$hdmodel" "$2" >/dev/null; then |
|
|
|
echo -e "${Yellow}$hdmodel${Off} already exists in ${Cyan}$(basename -- "$2")${Off}" >&2 |
|
|
|
|