mirror of
https://github.com/dockur/windows.git
synced 2025-10-28 11:45:50 +00:00
feat: Check for driver availability
This commit is contained in:
parent
ffbe46af3d
commit
6654bf54f8
1 changed files with 3 additions and 3 deletions
|
|
@ -1895,12 +1895,12 @@ prepareInstall() {
|
|||
local target
|
||||
[[ "${arch,,}" == "x86" ]] && target="$dir/I386" || target="$dir/AMD64"
|
||||
|
||||
cp "$drivers/viostor/$driver/$arch/viostor.sys" "$target"
|
||||
|
||||
if [ ! -f "$drivers/viostor/$driver/$arch/viostor.sys" ]; then
|
||||
error "Failed to locate required storage drivers!" && return 1
|
||||
fi
|
||||
|
||||
|
||||
cp "$drivers/viostor/$driver/$arch/viostor.sys" "$target"
|
||||
|
||||
mkdir -p "$dir/\$OEM\$/\$1/Drivers/viostor"
|
||||
cp "$drivers/viostor/$driver/$arch/viostor.cat" "$dir/\$OEM\$/\$1/Drivers/viostor"
|
||||
cp "$drivers/viostor/$driver/$arch/viostor.inf" "$dir/\$OEM\$/\$1/Drivers/viostor"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue