From 198f3485f2858e882e0cc4eb449a5c471fb0b543 Mon Sep 17 00:00:00 2001 From: maximilian attems Date: Fri, 27 Mar 2009 09:59:05 +0100 Subject: hook-functions: stricter match on loaded module for firmware warning. Otherwise it likes to warn for e100 even if e1000e is in use: grep e100 /proc/modules e1000e 110896 0 - Live 0xffffffffa0028000 --- hook-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hook-functions') diff --git a/hook-functions b/hook-functions index 2368b8d..d24df58 100644 --- a/hook-functions +++ b/hook-functions @@ -69,7 +69,7 @@ manual_add_modules() # Only print warning for missing fw of loaded module # or forced loaded module if [ ! -e "/lib/firmware/${firmware}" ]; then - if grep -q "^$(basename "${mam_x}" .ko)" \ + if grep -q "^$(basename "${mam_x}" .ko)[[:space:]]" \ /proc/modules \ || grep -q "^$(basename "${mam_x}" .ko)" \ "${CONFDIR}/modules"; then -- cgit v1.2.3