From 5bf00edeedaf729da18f5e40c19258d576de8c5b Mon Sep 17 00:00:00 2001 From: bin456789 Date: Fri, 31 Oct 2025 07:50:44 +0800 Subject: [PATCH] =?UTF-8?q?windows:=20=E8=B0=83=E6=95=B4=20intel=20nic=20?= =?UTF-8?q?=E9=A9=B1=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit win7: 统一使用 25.0,即使镜像不支持 sha256,因为官网下架了旧版本驱动 win10: 不再固定版本,而是从网页获取最新版 --- trans.sh | 43 +++++++++++++++++++++++++++++-------------- 1 file changed, 29 insertions(+), 14 deletions(-) diff --git a/trans.sh b/trans.sh index bf5c0ac..0ea265f 100644 --- a/trans.sh +++ b/trans.sh @@ -5966,28 +5966,43 @@ install_windows() { esac ) - file=$( + url=$( case "$product_ver" in - '7' | '2008 r2') $support_sha256 && + '7' | '2008 r2') + # 现在官网只有 25.0 # 25.0 比 24.5 只更新了 ProSet 软件,驱动相同 - echo 18713/eng/prowin${arch_intel}legacy.exe || # 25.0 有部分文件是 sha256 签名 - echo 29323/eng/prowin${arch_intel}legacy.exe ;; # 24.3 sha1 签名 - # 之前有 Intel® Network Adapter Driver for Windows 8* - Final Release ,版本 22.7.1 - # 但已被删除,原因不明 - # https://web.archive.org/web/20250501043104/https://www.intel.com/content/www/us/en/download/16765/intel-network-adapter-driver-for-windows-8-final-release.html - # 27.8 有 NDIS63 文件夹,意味着支持 Windows 8 - # 27.8 相比 22.7.1,可能有些老设备不支持了,但我们不管了 - '8' | '8.1') echo 764813/Wired_driver_27.8_${arch_intel}.zip ;; - '2012' | '2012 r2') echo 772074/Wired_driver_28.0_${arch_intel}.zip ;; + # 25.0 有部分文件是 sha256 签名 + # 24.3 全部文件是 sha1 签名 + # https://web.archive.org/web/20250405130938/https://www.intel.com/content/www/us/en/download/15590/29323/intel-network-adapter-driver-for-windows-7-final-release.html + echo https://downloadmirror.intel.com/18713/eng/prowin${arch_intel}legacy.exe + ;; + '8' | '8.1') + # 之前有 Intel® Network Adapter Driver for Windows 8* - Final Release ,版本 22.7.1 + # 但已被删除,原因不明 + # https://web.archive.org/web/20250501043104/https://www.intel.com/content/www/us/en/download/16765/intel-network-adapter-driver-for-windows-8-final-release.html + # 27.8 有 NDIS63 文件夹,意味着支持 Windows 8 + # 27.8 相比 22.7.1,可能有些老设备不支持了,但我们不管了 + echo https://downloadmirror.intel.com/764813/Wired_driver_27.8_${arch_intel}.zip + ;; + '2012' | '2012 r2') + echo https://downloadmirror.intel.com/772074/Wired_driver_28.0_${arch_intel}.zip + ;; + # 2016 2019 2022 2025 win10 win11 *) case "${arch_intel}" in - 32) echo 849483/Wired_driver_30.0.1_${arch_intel}.zip ;; - x64) echo 864508/Wired_driver_30.4_${arch_intel}.zip ;; + 32) + echo https://downloadmirror.intel.com/849483/Wired_driver_30.0.1_${arch_intel}.zip + ;; + x64) + # intel 禁止了 wget 下载网页 + wget -U curl/7.54.1 https://www.intel.com/content/www/us/en/download/727998.html -O- | + grep -Eio -m1 "\"https://.+/(Wired_driver|prowin).*${arch_intel}(legacy)?\.(zip|exe)\"" | tr -d '"' | grep . + ;; esac ;; esac ) # 注意 intel 禁止了 aria2 下载 - download https://downloadmirror.intel.com/$file $drv/intel.zip + download "$url" $drv/intel.zip # inf 可能是 UTF-16 LE?因此用 rg 搜索 # 用 busybox unzip 解压 win10 驱动时,路径和文件名会粘在一起