windows: 修复 56a8d9b 导致某些 SCSI 驱动未预先加载

This commit is contained in:
bin456789 2023-11-18 21:46:27 +08:00
parent e5a6877517
commit 0a565cb5c5
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -2,7 +2,8 @@
:: 安装 SCSI 驱动
for %%F in ("X:\drivers\*.inf") do (
find "Class=SCSIAdapter" "%%~F" >nul
:: 不要查找 Class=SCSIAdapter 因为有些驱动等号两边有空格
find /i "SCSIAdapter" "%%~F" >nul
if not errorlevel 1 (
drvload "%%~F"
)