From 2647b8ba0153b13e0edd6ec37728d441d59638fe Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Sun, 1 Sep 2024 04:48:45 -0400 Subject: [PATCH] amepatch/allowdowngrade: modify logic Signed-off-by: AuxXxilium --- allowdowngrade/all/usr/bin/allowdowngrade.sh | 15 ++++++++++++++- amepatch/install.sh | 1 + 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/allowdowngrade/all/usr/bin/allowdowngrade.sh b/allowdowngrade/all/usr/bin/allowdowngrade.sh index 7b3f396..7f41d93 100755 --- a/allowdowngrade/all/usr/bin/allowdowngrade.sh +++ b/allowdowngrade/all/usr/bin/allowdowngrade.sh @@ -14,4 +14,17 @@ /usr/syno/bin/synosetkeyvalue /etc/synopackageslimit.conf CodecPack "3.1.0-3005" # Allow Surveillance Station Downgrade on DSM 7.2.2 /usr/syno/bin/synosetkeyvalue /etc.defaults/synopackageslimit.conf SurveillanceStation "9.2.0-11289" -/usr/syno/bin/synosetkeyvalue /etc/synopackageslimit.conf SurveillanceStation "9.2.0-11289" \ No newline at end of file +/usr/syno/bin/synosetkeyvalue /etc/synopackageslimit.conf SurveillanceStation "9.2.0-11289" + +# Prevent AME from updating +if [ -d "/var/packages/CodecPack" ]; then + /usr/syno/bin/synosetkeyvalue /var/packages/CodecPack/INFO version "30.1.0-3005" +fi +# Prevent VideoStation from updating +if [ -d "/var/packages/VideoStation" ]; then + /usr/syno/bin/synosetkeyvalue /var/packages/VideoStation/INFO version "30.1.0-3153" +fi +# Prevent Surveillance Station from updating +if [ -d "/var/packages/SurveillanceStation" ]; then + /usr/syno/bin/synosetkeyvalue /var/packages/SurveillanceStation/INFO version "90.2.0-11289" +fi \ No newline at end of file diff --git a/amepatch/install.sh b/amepatch/install.sh index 52b4fb5..07072de 100755 --- a/amepatch/install.sh +++ b/amepatch/install.sh @@ -20,6 +20,7 @@ Description=addon amepatch DefaultDependencies=no IgnoreOnIsolate=true After=multi-user.target +After=allowdowngrade.service [Service] User=root