allowdowngrade: add new

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-08-31 09:49:06 +02:00
parent df0dfb8aa3
commit 11595024af
4 changed files with 78 additions and 6 deletions

View File

@ -0,0 +1,17 @@
#!/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"

42
allowdowngrade/install.sh Executable file
View File

@ -0,0 +1,42 @@
#!/usr/bin/env ash
#
# Copyright (C) 2023 AuxXxilium <https://github.com/AuxXxilium>
#
# This is free software, licensed under the MIT License.
# See /LICENSE for more information.
#
if [ "${1}" = "late" ]; then
echo "Installing addon allowdowngrade - ${1}"
mkdir -p "/tmpRoot/usr/arc/addons/"
cp -vf "${0}" "/tmpRoot/usr/arc/addons/"
cp -vf /usr/bin/allowdowngrade.sh /tmpRoot/usr/bin/allowdowngrade.sh
mkdir -p "/tmpRoot/usr/lib/systemd/system"
DEST="/tmpRoot/usr/lib/systemd/system/allowdowngrade.service"
cat << EOF > ${DEST}
[Unit]
Description=addon allowdowngrade
After=multi-user.target
[Service]
User=root
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/allowdowngrade.sh
[Install]
WantedBy=multi-user.target
[X-Synology]
Author=Virtualization Team
EOF
mkdir -vp /tmpRoot/usr/lib/systemd/system/multi-user.target.wants
ln -vsf /usr/lib/systemd/system/allowdowngrade.service /tmpRoot/usr/lib/systemd/system/multi-user.target.wants/allowdowngrade.service
fi
elif [ "${1}" = "uninstall" ]; then
echo "Installing addon allowdowngrade - ${1}"
# To-Do
fi

View File

@ -0,0 +1,19 @@
version: 1
name: allowdowngrade
description: "Allow Downgrade for AME, SS and VideoStation on 7.2.2"
system: false
beta: true
all:
install-script: "install.sh"
copy: "all"
apollolake: true
broadwell: true
broadwellnk: true
broadwellnkv2: true
broadwellntbap: true
denverton: true
geminilake: true
purley: true
v1000: true
r1000: true
epyc7002: true

View File

@ -280,12 +280,6 @@ elif [ "${1}" = "late" ]; then
echo "synosystemd.conf does not exist."
fi
# Allow VideoStation install and AME Downgrade on DSM 7.2.2
/tmpRoot/usr/syno/bin/synosetkeyvalue /tmpRoot/etc.defaults/synopackageslimit.conf VideoStation "3.1.0-3153"
/tmpRoot/usr/syno/bin/synosetkeyvalue /tmpRoot/etc/synopackageslimit.conf VideoStation "3.1.0-3153"
/tmpRoot/usr/syno/bin/synosetkeyvalue /tmpRoot/etc.defaults/synopackageslimit.conf CodecPack "3.1.0-3005"
/tmpRoot/usr/syno/bin/synosetkeyvalue /tmpRoot/etc/synopackageslimit.conf CodecPack "3.1.0-3005"
# Community Packages
if [ ! -f /tmpRoot/usr/syno/etc/packages/feeds ]; then
mkdir -p /tmpRoot/usr/syno/etc/packages