Browse Source
Use synogetkeyvalue to get current value
Use synogetkeyvalue to retrieve the current value rather than synosetkeyvalue.
pull/621/head
dennypage
6 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
syno_hdd_db.sh
|
|
@ -2372,7 +2372,7 @@ settingbak="$(/usr/syno/bin/synogetkeyvalue $synoinfo.bak $smc)" |
|
|
if [[ -z $settingbak || -z $setting ]]; then |
|
|
if [[ -z $settingbak || -z $setting ]]; then |
|
|
# For older models that don't use "support_memory_compatibility" |
|
|
# For older models that don't use "support_memory_compatibility" |
|
|
memcheck="/usr/lib/systemd/system/SynoMemCheck.service" |
|
|
memcheck="/usr/lib/systemd/system/SynoMemCheck.service" |
|
|
memcheck_value="$(/usr/syno/bin/synosetkeyvalue "$memcheck" ExecStart)" |
|
|
memcheck_value="$(/usr/syno/bin/synogetkeyvalue "$memcheck" ExecStart)" |
|
|
if [[ $ram == "yes" ]]; then |
|
|
if [[ $ram == "yes" ]]; then |
|
|
if [[ $memcheck_value == "/usr/syno/bin/syno_mem_check" ]]; then |
|
|
if [[ $memcheck_value == "/usr/syno/bin/syno_mem_check" ]]; then |
|
|
# Disable SynoMemCheck.service |
|
|
# Disable SynoMemCheck.service |
|
|
|