Compare commits

..

9 Commits

Author SHA1 Message Date
Ing
15488d54bf fix getmodels on TimeError 2024-06-01 03:50:29 +08:00
Ing
1696285145 fix typo 2024-06-01 03:46:03 +08:00
github-actions[bot]
0b44943449 update 2024-06-01 03:26:02 2024-06-01 03:26:02 +08:00
github-actions[bot]
e0b7bb1293 update 2024-06-01 03:17:00 2024-06-01 03:17:00 +08:00
Ing
7230ec2eb4 add enableRCPower, support_fan, supportadt7490 2024-05-31 16:31:24 +08:00
Ing
f36a251abe add support_apparmor 2024-05-31 16:31:00 +08:00
Ing
2d3dcce53b fix _sort_netif check 2024-05-31 03:01:21 +08:00
Ing
2a30ce8604 fix getmodels on TimeError 2024-05-31 01:59:25 +08:00
Ing
ab175ffee5 disable S41dhcpcd 2024-05-31 01:59:19 +08:00
28 changed files with 5517 additions and 5449 deletions

View File

@ -77,7 +77,7 @@ jobs:
if: success()
uses: actions/upload-artifact@v4
with:
name: addons
name: docs
path: |
docs/*.json
docs/*.xlsx

View File

@ -1 +1 @@
24.5.6
24.6.0

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -216,7 +216,6 @@ else
echo "$(TEXT "Waiting IP.")"
for N in ${ETHX}; do
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}')
echo -en "${N}(${DRIVER}): "
while true; do

View File

@ -1,4 +1,4 @@
RR_VERSION="24.5.6"
RR_VERSION="24.6.0"
RR_RELEASE=""
RR_TITLE="RR v${RR_VERSION}"

View File

@ -99,7 +99,7 @@ def getmodels(platforms=None):
"""
Get Syno Models.
"""
import json, requests
import json, requests, urllib3
from requests.adapters import HTTPAdapter
from requests.packages.urllib3.util.retry import Retry # type: ignore
@ -107,6 +107,7 @@ def getmodels(platforms=None):
session = requests.Session()
session.mount('http://', adapter)
session.mount('https://', adapter)
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
if platforms is not None and platforms != "":
PS = platforms.lower().replace(",", " ").split()
@ -116,7 +117,7 @@ def getmodels(platforms=None):
models = []
if len(models) == 0:
try:
req = session.get("https://autoupdate.synology.com/os/v2", timeout=10)
req = session.get("https://autoupdate.synology.com/os/v2", timeout=10, verify=False)
req.encoding = "utf-8"
data = json.loads(req.text)
@ -143,7 +144,7 @@ def getmodels(platforms=None):
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.cn/zh-cn/DSM/tutorial/What_kind_of_CPU_does_my_NAS_have"
req = session.get(url, timeout=10)
req = session.get(url, timeout=10, verify=False)
req.encoding = "utf-8"
bs = BeautifulSoup(req.text, "html.parser")
p = re.compile(r"data: (.*?),$", re.MULTILINE | re.DOTALL)

View File

@ -77,8 +77,9 @@ if [ -f "${PART2_PATH}/GRUB_VER" ]; then
fi
if [ ! "LOCALBUILD" = "${LOADER_DISK}" ]; then
_sort_netif "$(readConfigKey "addons.sortnetif" "${USER_CONFIG_FILE}")"
if arrayExistItem "sortnetif:" $(readConfigMap "addons" "${USER_CONFIG_FILE}"); then
_sort_netif "$(readConfigKey "addons.sortnetif" "${USER_CONFIG_FILE}")"
fi
for ETH in ${ETHX}; do
[ "${ETH::4}" = "wlan" ] && connectwlanif "${ETH}" && sleep 1
MACR="$(cat /sys/class/net/${ETH}/address 2>/dev/null | sed 's/://g')"
@ -165,7 +166,6 @@ done
echo "$(TEXT "Waiting IP.")"
for N in ${ETHX}; do
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}')
echo -en "${N}(${DRIVER}): "
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

View File

@ -986,6 +986,7 @@ function synoinfoMenu() {
a)
MSG=""
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 " * \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")"

View File

@ -12,6 +12,9 @@ synoinfo: &synoinfo
support_syno_hybrid_raid: "no"
supportraidgroup: "no"
HddEnableDynamicPower: "yes"
enableRCPower: "yes"
support_fan: "no"
supportadt7490: "no"
maxlanport: "8"
netif_seq: "0 1 2 3 4 5 6 7"
buzzeroffen: "0xffff"

View File

@ -1 +1 @@
24.5.6
24.6.0