mirror of
https://github.com/AuxXxilium/arc-addons.git
synced 2024-11-23 13:40:51 +07:00
redpill: add new
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
ddc4ef8ab6
commit
7e84556aed
25
redpill/install.sh
Executable file
25
redpill/install.sh
Executable 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
9
redpill/manifest.yml
Normal file
@ -0,0 +1,9 @@
|
||||
version: 1
|
||||
name: redpill
|
||||
description: "Delay redpill."
|
||||
system: true
|
||||
beta: false
|
||||
all:
|
||||
install-script: "install.sh"
|
||||
copy: ""
|
||||
epyc7002: true
|
Loading…
Reference in New Issue
Block a user