Browse Source

Merge pull request #225 from 007revad/develop

Develop
pull/226/head v3.4.82
Dave Russell 2 years ago
committed by GitHub
parent
commit
109eec02bf
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      CHANGES.txt
  2. 12
      syno_hdd_db.sh

3
CHANGES.txt

@ -1,3 +1,6 @@
v3.4.82
- Fix for drives that exist in the drive database already but have "compatibility unverified". Issue #224
v3.4.81
- Bug fix for false "This script is NOT running on a Synology NAS!" if uname is installed from Entware. Issue #218

12
syno_hdd_db.sh

@ -27,7 +27,7 @@
# Now warns if script is located on an M.2 volume.
scriptver="v3.4.81"
scriptver="v3.4.82"
script=Synology_HDD_db
repo="007revad/Synology_HDD_db"
scriptname=syno_hdd_db
@ -1160,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
@ -1790,7 +1798,7 @@ fi
setting="$(get_key_value $synoinfo support_wdda)"
if [[ $wdda == "no" ]]; then
if [[ $setting == "yes" ]]; then
# Disable support_memory_compatibility
# Disable support_wdda
synosetkeyvalue "$synoinfo" support_wdda "no"
setting="$(get_key_value "$synoinfo" support_wdda)"
if [[ $setting == "no" ]]; then

Loading…
Cancel
Save