redpill: add new

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-05-09 13:40:30 +02:00
parent ddc4ef8ab6
commit 7e84556aed
2 changed files with 34 additions and 0 deletions

25
redpill/install.sh Executable file
View File

@ -0,0 +1,25 @@
#!/usr/bin/env ash
#
# Copyright (C) 2023 AuxXxilium <https://github.com/AuxXxilium> and Ing <https://github.com/wjz304>
#
# This is free software, licensed under the MIT License.
# See /LICENSE for more information.
#
PLATFORMS="epyc7002"
PLATFORM="$(/bin/get_key_value /etc.defaults/synoinfo.conf unique | cut -d"_" -f2)"
if ! echo "${PLATFORMS}" | grep -qw "${PLATFORM}"; then
echo "${PLATFORM} is not supported redpill addon!"
exit 0
fi
if [ "${1}" = "early" ]; then
echo "Installing addon redpill - ${1}"
insmod /usr/lib/modules/rp.ko
elif [ "${1}" = "jrExit" ]; then
echo "Installing addon redpill - ${1}"
#rmmod redpill
fi

9
redpill/manifest.yml Normal file
View File

@ -0,0 +1,9 @@
version: 1
name: redpill
description: "Delay redpill."
system: true
beta: false
all:
install-script: "install.sh"
copy: ""
epyc7002: true