mirror of
https://github.com/fbelavenuto/arpl.git
synced 2025-12-24 14:52:05 +08:00
Fixing synoinfo DS2422+
Adding maxdisks addon
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
|
||||
ARPL_VERSION="0.1-alpha7"
|
||||
ARPL_VERSION="0.1-alpha8"
|
||||
|
||||
# Define paths
|
||||
TMP_PATH="/tmp"
|
||||
|
||||
@@ -13,6 +13,8 @@ modules-notneeded: &modules-notneeded
|
||||
- uhci_hcd
|
||||
- mv14xx
|
||||
synoinfo: &synoinfo
|
||||
support_disk_compatibility: "no"
|
||||
support_memory_compatibility: "no"
|
||||
rss_server: "http://example.com/null.xml"
|
||||
rss_server_ssl: "https://example.com/null.xml"
|
||||
rss_server_v2: "https://example.com/autoupdate/v2/getList"
|
||||
|
||||
@@ -62,18 +62,6 @@ while read f; do
|
||||
(cd "${RAMDISK_PATH}" && patch -p1 < "${PATCH_PATH}/${f}") >>"${LOG_FILE}" 2>&1 || dieLog
|
||||
done < <(readModelArray "${MODEL}" "builds.${BUILD}.patch")
|
||||
|
||||
# Temporary workaround
|
||||
# LOADER_DISK="`blkid | grep 'LABEL="ARPL3"' | cut -d3 -f1`"
|
||||
# BUS=`udevadm info --query property --name ${LOADER_DISK} | grep ID_BUS | cut -d= -f2`
|
||||
# DT="`readModelKey "${MODEL}" "dt"`"
|
||||
# if [ "${DT}" != "true" ]; then
|
||||
# NUMPORTS=$((`ls /sys/class/scsi_host | wc -w`-1))
|
||||
# [ "${BUS}" = "ata" ] && NUMPORTS=$((${NUMPORTS}-1))
|
||||
# SYNOINFO["maxdisks"]=${NUMPORTS}
|
||||
# INTPORTCFG="0x`printf "%x" "$((2**${NUMPORTS}-1))"`"
|
||||
# SYNOINFO["internalportcfg"]="${INTPORTCFG}"
|
||||
# fi
|
||||
|
||||
# Patch /etc/synoinfo.conf
|
||||
echo -n "."
|
||||
for KEY in ${!SYNOINFO[@]}; do
|
||||
@@ -104,8 +92,11 @@ cp "${PATCH_PATH}/iosched-trampoline.sh" "${RAMDISK_PATH}/usr/sbin/modprobe"
|
||||
# Addons
|
||||
# Check if model needs Device-tree dynamic patch
|
||||
DT="`readModelKey "${MODEL}" "dt"`"
|
||||
[ "${DT}" = "true" ] && ADDONS['qjs-dtb']="" # Add system addon "qjs-dtb"
|
||||
# Add system addon "qjs-dtb" or "maxdisks"
|
||||
[ "${DT}" = "true" ] && ADDONS['qjs-dtb']="" || ADDONS['maxdisks']=""
|
||||
ADDONS['misc']="" # Add system addon "misc"
|
||||
ADDONS['acpid']="" # Add system addon "acpid"
|
||||
|
||||
mkdir -p "${RAMDISK_PATH}/addons"
|
||||
echo -n "."
|
||||
#/proc/sys/kernel/syno_install_flag
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,5 +1,6 @@
|
||||
version: 1
|
||||
name: acpid
|
||||
system: true
|
||||
description: "Flexible and extensible daemon for delivering ACPI events"
|
||||
available-for:
|
||||
bromolow-3.10.108:
|
||||
|
||||
Binary file not shown.
BIN
files/board/arpl/p3/addons/maxdisks/all.tgz
Normal file
BIN
files/board/arpl/p3/addons/maxdisks/all.tgz
Normal file
Binary file not shown.
7
files/board/arpl/p3/addons/maxdisks/manifest.yml
Normal file
7
files/board/arpl/p3/addons/maxdisks/manifest.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
version: 1
|
||||
name: maxdisks
|
||||
system: true
|
||||
description: "Adjust maxdisks and internalportcfg automatically"
|
||||
all:
|
||||
install-script: "install.sh"
|
||||
copy: "all"
|
||||
Reference in New Issue
Block a user