From eafede3a1127af605141f3b14057945682f449bf Mon Sep 17 00:00:00 2001 From: mis Date: Fri, 13 Mar 2020 15:34:53 +0100 Subject: [PATCH] fix: return _false_ --- lsmod-fix.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lsmod-fix.patch b/lsmod-fix.patch index 5491296..38664e9 100644 --- a/lsmod-fix.patch +++ b/lsmod-fix.patch @@ -5,7 +5,7 @@ # module is needed (ie. is requested, is available and isn't loaded already) is_module() { + # return false if /sbin/lsmod not exists (like in containers) -+ [ -x /sbin/lsmod ] || return 0 ++ [ -x /sbin/lsmod ] || return 1 + # module name without .o at end if ! lsmod | grep -q "$1"; then -- 2.44.0