diff options
author | maximilian attems <maks@debian.org> | 2009-03-27 09:59:05 +0100 |
---|---|---|
committer | maximilian attems <maks@debian.org> | 2009-03-27 10:02:15 +0100 |
commit | 198f3485f2858e882e0cc4eb449a5c471fb0b543 (patch) | |
tree | d30a7cd3d50d4f946e9091b9b8fbfb90ca3e9da8 | |
parent | 2a0fee1aa8aa8dabc69380f861e7d1c8d35ec5f4 (diff) | |
download | initramfs-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-functions | 2 |
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 |