nvmesystem: enable for all platforms

(if not using SA6400, it will not be possible to create a storage pool on nvme disk)

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-05-14 17:11:07 +02:00
parent 0f45b4edea
commit 045742c41b
2 changed files with 21 additions and 17 deletions

View File

@ -6,11 +6,15 @@
# See /LICENSE for more information.
#
MODELS="SA6400"
MODEL="$(cat /proc/sys/kernel/syno_hw_version)"
if ! echo "${MODELS}" | grep -q "${MODEL}"; then
echo "${MODEL} is not supported"
# 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 nvmesystem addon!"
# exit 0
# fi
_BUILD="$(/bin/get_key_value /etc.defaults/VERSION buildnumber)"
if [ ${_BUILD:-64570} -lt 69057 ]; then
echo "${_BUILD} is not supported nvmesystem addon!"
exit 0
fi
@ -25,7 +29,7 @@ if [ "${1}" = "early" ]; then
[ ! -f "${SO_FILE}.bak" ] && cp -vf "${SO_FILE}" "${SO_FILE}.bak"
cp -f "${SO_FILE}" "${SO_FILE}.tmp"
xxd -c $(xxd -p "${SO_FILE}.tmp" 2>/dev/null | wc -c) -p "${SO_FILE}.tmp" 2>/dev/null |
sed "s/dcfcffff4584ed74b7488b4c24083b01/dcfcffff4584ed75b7488b4c24083b01/" |
sed "s/4584ed74b7488b4c24083b01/4584ed75b7488b4c24083b01/" |
xxd -r -p >"${SO_FILE}" 2>/dev/null
rm -f "${SO_FILE}.tmp"
@ -40,7 +44,7 @@ elif [ "${1}" = "late" ]; then
cp -vf "${SO_FILE}" "${SO_FILE}.tmp"
xxd -c $(xxd -p "${SO_FILE}.tmp" 2>/dev/null | wc -c) -p "${SO_FILE}.tmp" 2>/dev/null |
sed "s/0f95c00fb6c0488b9424081000006448/0f94c00fb6c0488b9424081000006448/; s/ffff89c18944240c8b44240809e84409/ffff89c18944240c8b44240890904409/" |
sed "s/0f95c00fb6c0488b94240810/0f94c00fb6c0488b94240810/; s/8944240c8b44240809e84409/8944240c8b44240890904409/" |
xxd -r -p >"${SO_FILE}" 2>/dev/null
rm -f "${SO_FILE}.tmp"

View File

@ -6,14 +6,14 @@ beta: false
all:
install-script: "install.sh"
copy: "all"
apollolake: false
broadwell: false
broadwellnk: false
broadwellnkv2: false
broadwellntbap: false
denverton: false
geminilake: false
purley: false
v1000: false
r1000: false
apollolake: true
broadwell: true
broadwellnk: true
broadwellnkv2: true
broadwellntbap: true
denverton: true
geminilake: true
purley: true
v1000: true
r1000: true
epyc7002: true