mirror of
https://github.com/AuxXxilium/arc-addons.git
synced 2024-11-23 21:50:52 +07:00
7e84556aed
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
25 lines
646 B
Bash
Executable File
25 lines
646 B
Bash
Executable File
#!/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 |