windows: 使用更准确的 intel nic 驱动链接

This commit is contained in:
bin456789
2026-01-07 20:30:32 +08:00
parent c2d36ed176
commit 83a85b9ccf

View File

@ -6038,8 +6038,18 @@ install_windows() {
echo https://downloadmirror.intel.com/849483/Wired_driver_30.0.1_${arch_intel}.zip echo https://downloadmirror.intel.com/849483/Wired_driver_30.0.1_${arch_intel}.zip
;; ;;
x64) x64)
id=$(
case "$product_ver" in
10) echo 18293 ;;
11) echo 727998 ;;
2016) echo 18737 ;;
2019) echo 19372 ;;
2022) echo 706171 ;;
2025) echo 838943 ;;
esac
)
# intel 禁止了 wget 下载网页 # intel 禁止了 wget 下载网页
wget -U curl/7.54.1 https://www.intel.com/content/www/us/en/download/727998.html -O- | wget -U curl/7.54.1 https://www.intel.com/content/www/us/en/download/$id.html -O- |
grep -Eio -m1 "\"https://.+/(Wired_driver|prowin).*${arch_intel}(legacy)?\.(zip|exe)\"" | tr -d '"' | grep . grep -Eio -m1 "\"https://.+/(Wired_driver|prowin).*${arch_intel}(legacy)?\.(zip|exe)\"" | tr -d '"' | grep .
;; ;;
esac ;; esac ;;