From 5a6081cd690488207034d289d59bab054a79ff48 Mon Sep 17 00:00:00 2001 From: 007revad <39733752+007revad@users.noreply.github.com> Date: Wed, 1 Mar 2023 18:30:58 +1100 Subject: [PATCH] Update syno_hdd_db.sh Added 2nd method of disabling disk compatibility to solve issue #1 and issue #4 for the few people where the original method didn't work. --- syno_hdd_db.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/syno_hdd_db.sh b/syno_hdd_db.sh index b1bb53d..69f56ad 100644 --- a/syno_hdd_db.sh +++ b/syno_hdd_db.sh @@ -222,6 +222,12 @@ while [[ $num -lt "${#nvmes[@]}" ]]; do num=$((num +1)) done +# Brute force method just in case +sdc=support_disk_compatibility +setting="$(get_key_value /etc.defaults/synoinfo.conf $sdc)" +if [[ $setting == "yes" ]]; then + sed -i "s/${sdc}=\"yes\"/${sdc}=\"no\"/g" "/etc.defaults/synoinfo.conf" +fi # Show the changes if [[ ${showedits,,} == "yes" ]]; then @@ -236,6 +242,7 @@ if [[ ${showedits,,} == "yes" ]]; then fi fi +echo -e "\nYou may need to ${Cyan}reboot the Synology${Off} to see the changes." exit