From 4c4d9c52bc1bcfdcf6c777ad8567f5587bab3301 Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 25 Sep 2024 14:58:24 +0200 Subject: [PATCH] feat: Check driver availability --- src/define.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/define.sh b/src/define.sh index fd8e090..aceb73e 100644 --- a/src/define.sh +++ b/src/define.sh @@ -1896,7 +1896,7 @@ prepareInstall() { [[ "${arch,,}" == "x86" ]] && target="$dir/I386" || target="$dir/AMD64" if [ ! -f "$drivers/viostor/$driver/$arch/viostor.sys" ]; then - error "Failed to locate required storage drivers!" && return 1 + error "Failed to locate required storage drivers!" && return 1 fi cp "$drivers/viostor/$driver/$arch/viostor.sys" "$target" @@ -1907,7 +1907,7 @@ prepareInstall() { cp "$drivers/viostor/$driver/$arch/viostor.sys" "$dir/\$OEM\$/\$1/Drivers/viostor" if [ ! -f "$drivers/NetKVM/$driver/$arch/netkvm.sys" ]; then - error "Failed to locate required network drivers!" && return 1 + error "Failed to locate required network drivers!" && return 1 fi mkdir -p "$dir/\$OEM\$/\$1/Drivers/NetKVM"