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
parent
commit
08bb6c6a2e
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      syno_hdd_db.sh

2
syno_hdd_db.sh

@ -2372,7 +2372,7 @@ settingbak="$(/usr/syno/bin/synogetkeyvalue $synoinfo.bak $smc)"
if [[ -z $settingbak || -z $setting ]]; then
# For older models that don't use "support_memory_compatibility"
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 [[ $memcheck_value == "/usr/syno/bin/syno_mem_check" ]]; then
# Disable SynoMemCheck.service

Loading…
Cancel
Save