summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2009-03-27 09:59:05 +0100
committermaximilian attems <maks@debian.org>2009-03-27 10:02:15 +0100
commit198f3485f2858e882e0cc4eb449a5c471fb0b543 (patch)
treed30a7cd3d50d4f946e9091b9b8fbfb90ca3e9da8
parent2a0fee1aa8aa8dabc69380f861e7d1c8d35ec5f4 (diff)
downloadinitramfs-tools-198f3485f2858e882e0cc4eb449a5c471fb0b543.tar.gz
initramfs-tools-198f3485f2858e882e0cc4eb449a5c471fb0b543.zip
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
-rw-r--r--hook-functions2
1 files changed, 1 insertions, 1 deletions
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