mirror of
https://github.com/RROrg/rr.git
synced 2025-08-21 20:17:11 +08:00
Compare commits
No commits in common. "15488d54bf5405cfb8efe5865e60aec45d94cab9" and "80de5220df1a8c48510af982e0bd5f44dde43e71" have entirely different histories.
15488d54bf
...
80de5220df
2
.github/workflows/data.yml
vendored
2
.github/workflows/data.yml
vendored
@ -77,7 +77,7 @@ jobs:
|
|||||||
if: success()
|
if: success()
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: docs
|
name: addons
|
||||||
path: |
|
path: |
|
||||||
docs/*.json
|
docs/*.json
|
||||||
docs/*.xlsx
|
docs/*.xlsx
|
||||||
|
BIN
docs/addons.xlsx
BIN
docs/addons.xlsx
Binary file not shown.
BIN
docs/models.xlsx
BIN
docs/models.xlsx
Binary file not shown.
Binary file not shown.
@ -216,6 +216,7 @@ else
|
|||||||
echo "$(TEXT "Waiting IP.")"
|
echo "$(TEXT "Waiting IP.")"
|
||||||
for N in ${ETHX}; do
|
for N in ${ETHX}; do
|
||||||
COUNT=0
|
COUNT=0
|
||||||
|
/etc/init.d/S41dhcpcd restart >/dev/null 2>&1 || true
|
||||||
DRIVER=$(ls -ld /sys/class/net/${N}/device/driver 2>/dev/null | awk -F '/' '{print $NF}')
|
DRIVER=$(ls -ld /sys/class/net/${N}/device/driver 2>/dev/null | awk -F '/' '{print $NF}')
|
||||||
echo -en "${N}(${DRIVER}): "
|
echo -en "${N}(${DRIVER}): "
|
||||||
while true; do
|
while true; do
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
RR_VERSION="24.6.0"
|
RR_VERSION="24.5.6"
|
||||||
RR_RELEASE=""
|
RR_RELEASE=""
|
||||||
RR_TITLE="RR v${RR_VERSION}"
|
RR_TITLE="RR v${RR_VERSION}"
|
||||||
|
|
||||||
|
@ -99,7 +99,7 @@ def getmodels(platforms=None):
|
|||||||
"""
|
"""
|
||||||
Get Syno Models.
|
Get Syno Models.
|
||||||
"""
|
"""
|
||||||
import json, requests, urllib3
|
import json, requests
|
||||||
from requests.adapters import HTTPAdapter
|
from requests.adapters import HTTPAdapter
|
||||||
from requests.packages.urllib3.util.retry import Retry # type: ignore
|
from requests.packages.urllib3.util.retry import Retry # type: ignore
|
||||||
|
|
||||||
@ -107,7 +107,6 @@ def getmodels(platforms=None):
|
|||||||
session = requests.Session()
|
session = requests.Session()
|
||||||
session.mount('http://', adapter)
|
session.mount('http://', adapter)
|
||||||
session.mount('https://', adapter)
|
session.mount('https://', adapter)
|
||||||
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
|
|
||||||
|
|
||||||
if platforms is not None and platforms != "":
|
if platforms is not None and platforms != "":
|
||||||
PS = platforms.lower().replace(",", " ").split()
|
PS = platforms.lower().replace(",", " ").split()
|
||||||
@ -117,7 +116,7 @@ def getmodels(platforms=None):
|
|||||||
models = []
|
models = []
|
||||||
if len(models) == 0:
|
if len(models) == 0:
|
||||||
try:
|
try:
|
||||||
req = session.get("https://autoupdate.synology.com/os/v2", timeout=10, verify=False)
|
req = session.get("https://autoupdate.synology.com/os/v2", timeout=10)
|
||||||
req.encoding = "utf-8"
|
req.encoding = "utf-8"
|
||||||
data = json.loads(req.text)
|
data = json.loads(req.text)
|
||||||
|
|
||||||
@ -144,7 +143,7 @@ def getmodels(platforms=None):
|
|||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
#url="https://kb.synology.com/en-us/DSM/tutorial/What_kind_of_CPU_does_my_NAS_have"
|
#url="https://kb.synology.com/en-us/DSM/tutorial/What_kind_of_CPU_does_my_NAS_have"
|
||||||
url="https://kb.synology.cn/zh-cn/DSM/tutorial/What_kind_of_CPU_does_my_NAS_have"
|
url="https://kb.synology.cn/zh-cn/DSM/tutorial/What_kind_of_CPU_does_my_NAS_have"
|
||||||
req = session.get(url, timeout=10, verify=False)
|
req = session.get(url, timeout=10)
|
||||||
req.encoding = "utf-8"
|
req.encoding = "utf-8"
|
||||||
bs = BeautifulSoup(req.text, "html.parser")
|
bs = BeautifulSoup(req.text, "html.parser")
|
||||||
p = re.compile(r"data: (.*?),$", re.MULTILINE | re.DOTALL)
|
p = re.compile(r"data: (.*?),$", re.MULTILINE | re.DOTALL)
|
||||||
|
@ -77,9 +77,8 @@ if [ -f "${PART2_PATH}/GRUB_VER" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! "LOCALBUILD" = "${LOADER_DISK}" ]; then
|
if [ ! "LOCALBUILD" = "${LOADER_DISK}" ]; then
|
||||||
if arrayExistItem "sortnetif:" $(readConfigMap "addons" "${USER_CONFIG_FILE}"); then
|
_sort_netif "$(readConfigKey "addons.sortnetif" "${USER_CONFIG_FILE}")"
|
||||||
_sort_netif "$(readConfigKey "addons.sortnetif" "${USER_CONFIG_FILE}")"
|
|
||||||
fi
|
|
||||||
for ETH in ${ETHX}; do
|
for ETH in ${ETHX}; do
|
||||||
[ "${ETH::4}" = "wlan" ] && connectwlanif "${ETH}" && sleep 1
|
[ "${ETH::4}" = "wlan" ] && connectwlanif "${ETH}" && sleep 1
|
||||||
MACR="$(cat /sys/class/net/${ETH}/address 2>/dev/null | sed 's/://g')"
|
MACR="$(cat /sys/class/net/${ETH}/address 2>/dev/null | sed 's/://g')"
|
||||||
@ -166,6 +165,7 @@ done
|
|||||||
echo "$(TEXT "Waiting IP.")"
|
echo "$(TEXT "Waiting IP.")"
|
||||||
for N in ${ETHX}; do
|
for N in ${ETHX}; do
|
||||||
COUNT=0
|
COUNT=0
|
||||||
|
/etc/init.d/S41dhcpcd restart >/dev/null 2>&1 || true
|
||||||
DRIVER=$(ls -ld /sys/class/net/${N}/device/driver 2>/dev/null | awk -F '/' '{print $NF}')
|
DRIVER=$(ls -ld /sys/class/net/${N}/device/driver 2>/dev/null | awk -F '/' '{print $NF}')
|
||||||
echo -en "${N}(${DRIVER}): "
|
echo -en "${N}(${DRIVER}): "
|
||||||
while true; do
|
while true; do
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -986,7 +986,6 @@ function synoinfoMenu() {
|
|||||||
a)
|
a)
|
||||||
MSG=""
|
MSG=""
|
||||||
MSG+="$(TEXT "Commonly used synoinfo:\n")"
|
MSG+="$(TEXT "Commonly used synoinfo:\n")"
|
||||||
MSG+="$(TEXT " * \Z4support_apparmor=no\Zn\n Disable apparmor.\n")"
|
|
||||||
MSG+="$(TEXT " * \Z4maxdisks=??\Zn\n Maximum number of disks supported.\n")"
|
MSG+="$(TEXT " * \Z4maxdisks=??\Zn\n Maximum number of disks supported.\n")"
|
||||||
MSG+="$(TEXT " * \Z4internalportcfg=0x????\Zn\n Internal(sata) disks mask(Not apply to DT models).\n")"
|
MSG+="$(TEXT " * \Z4internalportcfg=0x????\Zn\n Internal(sata) disks mask(Not apply to DT models).\n")"
|
||||||
MSG+="$(TEXT " * \Z4esataportcfg=0x????\Zn\n Esata disks mask(Not apply to DT models).\n")"
|
MSG+="$(TEXT " * \Z4esataportcfg=0x????\Zn\n Esata disks mask(Not apply to DT models).\n")"
|
||||||
|
@ -12,9 +12,6 @@ synoinfo: &synoinfo
|
|||||||
support_syno_hybrid_raid: "no"
|
support_syno_hybrid_raid: "no"
|
||||||
supportraidgroup: "no"
|
supportraidgroup: "no"
|
||||||
HddEnableDynamicPower: "yes"
|
HddEnableDynamicPower: "yes"
|
||||||
enableRCPower: "yes"
|
|
||||||
support_fan: "no"
|
|
||||||
supportadt7490: "no"
|
|
||||||
maxlanport: "8"
|
maxlanport: "8"
|
||||||
netif_seq: "0 1 2 3 4 5 6 7"
|
netif_seq: "0 1 2 3 4 5 6 7"
|
||||||
buzzeroffen: "0xffff"
|
buzzeroffen: "0xffff"
|
||||||
|
@ -1 +1 @@
|
|||||||
24.6.0
|
24.5.6
|
||||||
|
Loading…
x
Reference in New Issue
Block a user