007revad
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
4 deletions
-
syno_hdd_db.sh
|
|
@ -63,7 +63,7 @@ |
|
|
# Optionally disable "support_disk_compatibility". |
|
|
# Optionally disable "support_disk_compatibility". |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
scriptver="1.1.12" |
|
|
scriptver="v1.1.12" |
|
|
|
|
|
|
|
|
# Check latest release with GitHub API |
|
|
# Check latest release with GitHub API |
|
|
get_latest_release() { |
|
|
get_latest_release() { |
|
|
@ -402,10 +402,11 @@ fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Check m2 volume support enabled |
|
|
# 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 |
|
|
if [[ $setting == "no" ]]; then |
|
|
sed -i "s/${sdc}=\"no\"/${sdc}=\"yes\"/" "/etc.defaults/synoinfo.conf" |
|
|
sed -i "s/${smp}=\"no\"/${smp}=\"yes\"/" "/etc.defaults/synoinfo.conf" |
|
|
setting="$(get_key_value /etc.defaults/synoinfo.conf support_m2_pool)" |
|
|
setting="$(get_key_value /etc.defaults/synoinfo.conf ${smp})" |
|
|
if [[ $setting == "yes" ]]; then |
|
|
if [[ $setting == "yes" ]]; then |
|
|
echo -e "\nEnabled M.2 volume support." |
|
|
echo -e "\nEnabled M.2 volume support." |
|
|
fi |
|
|
fi |
|
|
|