From 1c7bea5ebbbedcab2a7e8c0d9b7b9323bd4ec464 Mon Sep 17 00:00:00 2001 From: Sebastien Luttringer Date: Tue, 14 Jun 2011 00:32:22 +0200 Subject: Fix detection of not compressed modules Function all_modules() doesn't correctly detect module extension. It's a one char removing patch. Signed-off-by: Sebastien Luttringer --- functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions b/functions index 75ea0a0..4da4d4e 100644 --- a/functions +++ b/functions @@ -56,7 +56,7 @@ all_modules () while read -r -d '' mod; do (( ++count )) mod=${mod##*/} - mod="${mod%.ko.*}" + mod="${mod%.ko*}" printf '%s\n' "${mod//-/_}" done < <(find "$MODULEDIR" -name '*.ko*' -print0 2>/dev/null | grep -Zz "$@") -- cgit v1.2.3-24-g4f1b