Browse Source

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.
pull/15/head V1.0.6
007revad 3 years ago
committed by GitHub
parent
commit
5a6081cd69
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      syno_hdd_db.sh

7
syno_hdd_db.sh

@ -222,6 +222,12 @@ while [[ $num -lt "${#nvmes[@]}" ]]; do
num=$((num +1)) num=$((num +1))
done 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 # Show the changes
if [[ ${showedits,,} == "yes" ]]; then if [[ ${showedits,,} == "yes" ]]; then
@ -236,6 +242,7 @@ if [[ ${showedits,,} == "yes" ]]; then
fi fi
fi fi
echo -e "\nYou may need to ${Cyan}reboot the Synology${Off} to see the changes."
exit exit

Loading…
Cancel
Save