mirror of
https://github.com/bin456789/reinstall.git
synced 2025-06-08 05:19:57 +00:00
windows: 更新阿里云 win7 sha1 驱动链接
This commit is contained in:
parent
139db3449f
commit
82f538c964
28
trans.sh
28
trans.sh
@ -6232,34 +6232,23 @@ EOF
|
|||||||
add_driver_aliyun_virtio() {
|
add_driver_aliyun_virtio() {
|
||||||
info "Add drivers: Aliyun virtio"
|
info "Add drivers: Aliyun virtio"
|
||||||
|
|
||||||
# win7 sha1 旧驱动
|
|
||||||
if [ "$nt_ver" = 6.1 ] && ! $support_sha256; then
|
|
||||||
filename=210408.1454.1459_bin.zip # sha1
|
|
||||||
# filename=220915.0953.0953_bin.zip # sha256
|
|
||||||
# filename=new_virtio.zip # sha256
|
|
||||||
|
|
||||||
if is_in_china; then
|
|
||||||
region=cn-beijing
|
|
||||||
else
|
|
||||||
region=us-west-1
|
|
||||||
fi
|
|
||||||
|
|
||||||
download https://windows-driver-$region.oss-$region.aliyuncs.com/virtio/$filename $drv/aliyun.zip
|
|
||||||
unzip -o -d $drv/aliyun/ $drv/aliyun.zip
|
|
||||||
cp_drivers $drv/aliyun -ipath "*/win7/${arch}/*"
|
|
||||||
else
|
|
||||||
# 新驱动
|
|
||||||
aliyun_sys=$(
|
aliyun_sys=$(
|
||||||
case "$nt_ver" in
|
case "$nt_ver" in
|
||||||
6.1) echo 2008R2 ;; # sha256
|
6.1) echo 2008R2 ;;
|
||||||
6.2 | 6.3) echo 2012R2 ;; # 实际上是 2012 的驱动
|
6.2 | 6.3) echo 2012R2 ;; # 实际上是 2012 的驱动
|
||||||
*) echo 2016 ;;
|
*) echo 2016 ;;
|
||||||
esac
|
esac
|
||||||
)
|
)
|
||||||
|
|
||||||
|
subdir=
|
||||||
|
if [ "$nt_ver" = 6.1 ] && ! $support_sha256; then
|
||||||
|
subdir=58017/ # sha1
|
||||||
|
fi
|
||||||
|
|
||||||
region=cn-hangzhou
|
region=cn-hangzhou
|
||||||
|
|
||||||
download https://windows-driver-$region.oss-$region.aliyuncs.com/virtio/AliyunVirtio_WIN$aliyun_sys.zip $drv/AliyunVirtio.zip
|
download https://windows-driver-$region.oss-$region.aliyuncs.com/virtio/${subdir}AliyunVirtio_WIN$aliyun_sys.zip \
|
||||||
|
$drv/AliyunVirtio.zip
|
||||||
unzip -o -d $drv $drv/AliyunVirtio.zip
|
unzip -o -d $drv $drv/AliyunVirtio.zip
|
||||||
|
|
||||||
apk add innoextract
|
apk add innoextract
|
||||||
@ -6267,7 +6256,6 @@ EOF
|
|||||||
apk del innoextract
|
apk del innoextract
|
||||||
|
|
||||||
cp_drivers $drv/aliyun -ipath "*/C$/Program Files/AliyunVirtio/*/drivers/*"
|
cp_drivers $drv/aliyun -ipath "*/C$/Program Files/AliyunVirtio/*/drivers/*"
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# gcp virtio win7 x64 sha1
|
# gcp virtio win7 x64 sha1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user