From 7e84556aed7b2dc0b59e98a1304280fcb4ce4da5 Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Thu, 9 May 2024 13:40:30 +0200 Subject: [PATCH] redpill: add new Signed-off-by: AuxXxilium --- redpill/install.sh | 25 +++++++++++++++++++++++++ redpill/manifest.yml | 9 +++++++++ 2 files changed, 34 insertions(+) create mode 100755 redpill/install.sh create mode 100644 redpill/manifest.yml diff --git a/redpill/install.sh b/redpill/install.sh new file mode 100755 index 0000000..431b2b1 --- /dev/null +++ b/redpill/install.sh @@ -0,0 +1,25 @@ +#!/usr/bin/env ash +# +# Copyright (C) 2023 AuxXxilium and Ing +# +# 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 \ No newline at end of file diff --git a/redpill/manifest.yml b/redpill/manifest.yml new file mode 100644 index 0000000..9a6f710 --- /dev/null +++ b/redpill/manifest.yml @@ -0,0 +1,9 @@ +version: 1 +name: redpill +description: "Delay redpill." +system: true +beta: false +all: + install-script: "install.sh" + copy: "" +epyc7002: true \ No newline at end of file