arc-addons/allowdowngrade/all/usr/bin/allowdowngrade.sh
AuxXxilium 2647b8ba01 amepatch/allowdowngrade: modify logic
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
2024-09-01 04:48:45 -04:00

30 lines
1.4 KiB
Bash
Executable File

#!/usr/bin/env bash
#
# Copyright (C) 2023 AuxXxilium <https://github.com/AuxXxilium>
#
# This is free software, licensed under the MIT License.
# See /LICENSE for more information.
#
# Allow VideoStation Downgrade on DSM 7.2.2
/usr/syno/bin/synosetkeyvalue /etc.defaults/synopackageslimit.conf VideoStation "3.1.0-3153"
/usr/syno/bin/synosetkeyvalue /etc/synopackageslimit.conf VideoStation "3.1.0-3153"
# Allow AME Downgrade on DSM 7.2.2
/usr/syno/bin/synosetkeyvalue /etc.defaults/synopackageslimit.conf CodecPack "3.1.0-3005"
/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"
# 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