Browse Source

Update syno_hdd_db.sh

pull/15/head v1.1.13
007revad 3 years ago
committed by GitHub
parent
commit
945ff806f8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      syno_hdd_db.sh

9
syno_hdd_db.sh

@ -63,7 +63,7 @@
# Optionally disable "support_disk_compatibility".
scriptver="1.1.12"
scriptver="v1.1.12"
# Check latest release with GitHub API
get_latest_release() {
@ -402,10 +402,11 @@ fi
# Check m2 volume support enabled
setting="$(get_key_value /etc.defaults/synoinfo.conf support_m2_pool)"
smp=support_m2_pool
setting="$(get_key_value /etc.defaults/synoinfo.conf ${smp})"
if [[ $setting == "no" ]]; then
sed -i "s/${sdc}=\"no\"/${sdc}=\"yes\"/" "/etc.defaults/synoinfo.conf"
setting="$(get_key_value /etc.defaults/synoinfo.conf support_m2_pool)"
sed -i "s/${smp}=\"no\"/${smp}=\"yes\"/" "/etc.defaults/synoinfo.conf"
setting="$(get_key_value /etc.defaults/synoinfo.conf ${smp})"
if [[ $setting == "yes" ]]; then
echo -e "\nEnabled M.2 volume support."
fi

Loading…
Cancel
Save