mirror of
https://github.com/RROrg/rr.git
synced 2025-08-29 16:07:05 +08:00
Compare commits
No commits in common. "7d96f04fe336e7e64bfe722ec8ee78551b21cba6" and "4ff26cd6aafca795032d9d9e1f7edf4bb700afdf" have entirely different histories.
7d96f04fe3
...
4ff26cd6aa
@ -238,7 +238,7 @@ fi
|
|||||||
# CMDLINE['modprobe.blacklist']+="sdhci,sdhci_pci,sdhci_acpi"
|
# CMDLINE['modprobe.blacklist']+="sdhci,sdhci_pci,sdhci_acpi"
|
||||||
# fi
|
# fi
|
||||||
# fi
|
# fi
|
||||||
if [ "${DT}" = "true" ] && ! echo "v1000nk epyc7002 purley broadwellnkv2" | grep -wq "${PLATFORM}"; then
|
if [ "${DT}" = "true" ] && ! echo "epyc7002 purley broadwellnkv2" | grep -wq "${PLATFORM}"; then
|
||||||
if ! echo "${CMDLINE['modprobe.blacklist']}" | grep -q "mpt3sas"; then
|
if ! echo "${CMDLINE['modprobe.blacklist']}" | grep -q "mpt3sas"; then
|
||||||
[ ! "${CMDLINE['modprobe.blacklist']}" = "" ] && CMDLINE['modprobe.blacklist']+=","
|
[ ! "${CMDLINE['modprobe.blacklist']}" = "" ] && CMDLINE['modprobe.blacklist']+=","
|
||||||
CMDLINE['modprobe.blacklist']+="mpt3sas"
|
CMDLINE['modprobe.blacklist']+="mpt3sas"
|
||||||
|
@ -150,9 +150,8 @@ function modelMenu() {
|
|||||||
while true; do
|
while true; do
|
||||||
rm -f "${TMP_PATH}/menu"
|
rm -f "${TMP_PATH}/menu"
|
||||||
FLGNEX=0
|
FLGNEX=0
|
||||||
IGPU1L=(apollolake geminilake v1000nk epyc7002)
|
IGPU1L=(apollolake geminilake epyc7002)
|
||||||
IGPU2L=(v1000nk epyc7002)
|
IGPU2L=(epyc7002)
|
||||||
KVER5L=(v1000nk epyc7002)
|
|
||||||
IGPUID="$(lspci -nd ::300 2>/dev/null | grep "8086" | cut -d' ' -f3 | sed 's/://g')"
|
IGPUID="$(lspci -nd ::300 2>/dev/null | grep "8086" | cut -d' ' -f3 | sed 's/://g')"
|
||||||
NVMEMS=(DS918+ RS1619xs+ DS419+ DS1019+ DS719+ DS1621xs+)
|
NVMEMS=(DS918+ RS1619xs+ DS419+ DS1019+ DS719+ DS1621xs+)
|
||||||
NVMEMD=$(find /sys/devices -type d -name nvme | awk -F'/' '{print NF}' | sort -n | tail -n1)
|
NVMEMD=$(find /sys/devices -type d -name nvme | awk -F'/' '{print NF}' | sort -n | tail -n1)
|
||||||
@ -177,7 +176,7 @@ function modelMenu() {
|
|||||||
[ -z "${N}" ] && [ ${hasNVME} -ne 0 ] && [ "${DT}" = "DT" ] && N="N"
|
[ -z "${N}" ] && [ ${hasNVME} -ne 0 ] && [ "${DT}" = "DT" ] && N="N"
|
||||||
[ -z "${N}" ] && [ ${hasNVME} -eq 2 ] && echo "${NVMEMS[@]}" | grep -wq "${M}" && N="N"
|
[ -z "${N}" ] && [ ${hasNVME} -eq 2 ] && echo "${NVMEMS[@]}" | grep -wq "${M}" && N="N"
|
||||||
[ -z "${H}" ] && [ ${hasHBA} -eq 1 ] && [ ! "${DT}" = "DT" ] && H="H"
|
[ -z "${H}" ] && [ ${hasHBA} -eq 1 ] && [ ! "${DT}" = "DT" ] && H="H"
|
||||||
[ -z "${H}" ] && [ ${hasHBA} -eq 1 ] && echo "${KVER5L[@]}" | grep -wq "${A}" && H="H"
|
[ -z "${H}" ] && [ ${hasHBA} -eq 1 ] && echo "epyc7002" | grep -wq "${A}" && H="H"
|
||||||
[ ${COMPATIBLE} -eq 1 ] && printf "%s \"\Zb%-14s %-2s %-3s\Zn\" " "${M}" "${A}" "${DT}" "${G}${N}${H}" >>"${TMP_PATH}/menu"
|
[ ${COMPATIBLE} -eq 1 ] && printf "%s \"\Zb%-14s %-2s %-3s\Zn\" " "${M}" "${A}" "${DT}" "${G}${N}${H}" >>"${TMP_PATH}/menu"
|
||||||
done <"${TMP_PATH}/modellist"
|
done <"${TMP_PATH}/modellist"
|
||||||
[ ${FLGNEX} -eq 1 ] && echo "f \"\Z1$(TEXT "Disable flags restriction")\Zn\"" >>"${TMP_PATH}/menu"
|
[ ${FLGNEX} -eq 1 ] && echo "f \"\Z1$(TEXT "Disable flags restriction")\Zn\"" >>"${TMP_PATH}/menu"
|
||||||
|
@ -17,7 +17,6 @@ synoinfo: &synoinfo
|
|||||||
maxlanport: "8"
|
maxlanport: "8"
|
||||||
netif_seq: ""
|
netif_seq: ""
|
||||||
buzzeroffen: "0xffff"
|
buzzeroffen: "0xffff"
|
||||||
usbcopy: "yes"
|
|
||||||
|
|
||||||
productvers4: &productvers4
|
productvers4: &productvers4
|
||||||
"7.0":
|
"7.0":
|
||||||
@ -107,12 +106,6 @@ platforms:
|
|||||||
dt: true
|
dt: true
|
||||||
synoinfo: *synoinfo
|
synoinfo: *synoinfo
|
||||||
productvers: *productvers4
|
productvers: *productvers4
|
||||||
v1000nk:
|
|
||||||
dt: true
|
|
||||||
synoinfo:
|
|
||||||
<<: *synoinfo
|
|
||||||
netif_seq_by_dts: "no"
|
|
||||||
productvers: *productvers5
|
|
||||||
epyc7002:
|
epyc7002:
|
||||||
dt: true
|
dt: true
|
||||||
synoinfo:
|
synoinfo:
|
||||||
|
@ -243,9 +243,7 @@ for N in $(seq 0 7); do
|
|||||||
done
|
done
|
||||||
|
|
||||||
# issues/313
|
# issues/313
|
||||||
if [ "$(echo "${KVER:-4}" | cut -d'.' -f1)" -lt 5 ]; then
|
if [ "${PLATFORM}" = "epyc7002" ]; then
|
||||||
:
|
|
||||||
else
|
|
||||||
sed -i 's#/dev/console#/var/log/lrc#g' "${RAMDISK_PATH}/usr/bin/busybox"
|
sed -i 's#/dev/console#/var/log/lrc#g' "${RAMDISK_PATH}/usr/bin/busybox"
|
||||||
sed -i '/^echo "START/a \\nmknod -m 0666 /dev/console c 1 3' "${RAMDISK_PATH}/linuxrc.syno"
|
sed -i '/^echo "START/a \\nmknod -m 0666 /dev/console c 1 3' "${RAMDISK_PATH}/linuxrc.syno"
|
||||||
fi
|
fi
|
||||||
|
3
guide.md
3
guide.md
@ -333,8 +333,7 @@
|
|||||||
|
|
||||||
# API
|
# API
|
||||||
# 获取系统信息
|
# 获取系统信息
|
||||||
synowebapi --exec api=SYNO.Core.System method=info version=3
|
synowebapi --exec api=SYNO.Core.System method=info version=1
|
||||||
synowebapi --exec api=SYNO.Core.System method=info version=3 type="firmware"
|
|
||||||
# 获取设备信息
|
# 获取设备信息
|
||||||
synowebapi --exec api=SYNO.Core.System.Utilization method=get version=1
|
synowebapi --exec api=SYNO.Core.System.Utilization method=get version=1
|
||||||
# 关闭 自动 https 重定向
|
# 关闭 自动 https 重定向
|
||||||
|
Loading…
x
Reference in New Issue
Block a user