From 896d277d953d622231903e14660d203dc76b436a Mon Sep 17 00:00:00 2001 From: jeremydenoun Date: Thu, 11 Feb 2021 14:00:18 +0100 Subject: [PATCH] fix #46 bug (#47) Co-authored-by: Jeremy Denoun --- lib/utils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils.sh b/lib/utils.sh index a550fb4..8e66c42 100644 --- a/lib/utils.sh +++ b/lib/utils.sh @@ -359,7 +359,7 @@ is_kernel_option_enabled() { fi fi else - if [ "$FILTER" != "" ]; then + if [ "$MODPROBE_FILTER" != "" ]; then DEF_MODULE="$($SUDO_CMD modprobe -n -v "$MODULE_NAME" 2>/dev/null | grep -E "$MODPROBE_FILTER" | xargs)" else DEF_MODULE="$($SUDO_CMD modprobe -n -v "$MODULE_NAME" 2>/dev/null | xargs)"