From 6654bf54f82f57a695e0758dab78051143f09173 Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 25 Sep 2024 14:55:30 +0200 Subject: [PATCH] feat: Check for driver availability --- src/define.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/define.sh b/src/define.sh index 6331607..fd8e090 100644 --- a/src/define.sh +++ b/src/define.sh @@ -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"