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