fix mirrors selection error, fix DVA1622 SN

This commit is contained in:
Ing 2023-04-20 09:28:41 +08:00
parent e225133099
commit 4cd71f298e
3 changed files with 5 additions and 8 deletions

View File

@ -535,9 +535,9 @@ function extractDsmFiles() {
fi fi
mkdir -p "${CACHE_PATH}/dl" mkdir -p "${CACHE_PATH}/dl"
speed_a="`curl -Lo /dev/null -skw "%{speed_download}" "global.synologydownload.com"`" speed_a="`curl -Lo /dev/null -m 1 -skw "%{speed_download}" "https://global.synologydownload.com/download/DSM/release/7.0.1/42218/DSM_DS3622xs%2B_42218.pat"`"
speed_b="`curl -Lo /dev/null -skw "%{speed_download}" "global.download.synology.com"`" speed_b="`curl -Lo /dev/null -m 1 -skw "%{speed_download}" "https://global.download.synology.com/download/DSM/release/7.0.1/42218/DSM_DS3622xs%2B_42218.pat"`"
speed_c="`curl -Lo /dev/null -skw "%{speed_download}" "cndl.synology.cn"`" speed_c="`curl -Lo /dev/null -m 1 -skw "%{speed_download}" "https://cndl.synology.cn/download/DSM/release/7.0.1/42218/DSM_DS3622xs%2B_42218.pat"`"
fastest="`echo -e "global.synologydownload.com ${speed_a}\nglobal.download.synology.com ${speed_b}\ncndl.synology.cn ${speed_c}" | sort -k2rn | head -1 | awk '{print $1}'`" fastest="`echo -e "global.synologydownload.com ${speed_a}\nglobal.download.synology.com ${speed_b}\ncndl.synology.cn ${speed_c}" | sort -k2rn | head -1 | awk '{print $1}'`"
mirror="`echo ${PAT_URL} | sed 's|^http[s]*://\([^/]*\).*|\1|'`" mirror="`echo ${PAT_URL} | sed 's|^http[s]*://\([^/]*\).*|\1|'`"

View File

@ -1,12 +1,9 @@
id: "DS916+" id: "DS916+"
synoinfo: &synoinfo synoinfo: &synoinfo
esataportcfg: "0x00"
support_disk_compatibility: "no" support_disk_compatibility: "no"
support_memory_compatibility: "no" support_memory_compatibility: "no"
supportssdcache: "no"
esataportcfg: "0x00"
support_led_brightness_adjustment: "no" support_led_brightness_adjustment: "no"
support_leds_lp3943: ""
buzzeroffen: "0xffff"
rss_server: "https://raw.githubusercontent.com/wjz304/arpl-arpl-i18n/main/rss.xml" rss_server: "https://raw.githubusercontent.com/wjz304/arpl-arpl-i18n/main/rss.xml"
rss_server_ssl: "https://raw.githubusercontent.com/wjz304/arpl-arpl-i18n/main/rss.xml" rss_server_ssl: "https://raw.githubusercontent.com/wjz304/arpl-arpl-i18n/main/rss.xml"
support_syno_hybrid_raid: support_syno_hybrid_raid:

View File

@ -26,7 +26,7 @@ serial:
- "2040" - "2040"
- "20C0" - "20C0"
- "2150" - "2150"
middle: "SJR" middle: "UBR"
suffix: "alpha" suffix: "alpha"
disks: 2 disks: 2
dt: true dt: true