diff options
author | maximilian attems <maks@debian.org> | 2009-10-28 23:20:02 +0100 |
---|---|---|
committer | maximilian attems <maks@debian.org> | 2009-10-28 23:28:51 +0100 |
commit | a2127d339d78d2ea2779b24d0f42f6203777df72 (patch) | |
tree | 7de5120b0009a0bd194b144af77a3b44f3795b1e /hook-functions | |
parent | 3158f6513227b63efd672505592ab537e043212c (diff) | |
download | initramfs-tools-a2127d339d78d2ea2779b24d0f42f6203777df72.tar.gz initramfs-tools-a2127d339d78d2ea2779b24d0f42f6203777df72.zip |
hook-funcitions: Only warn about missing firmware if /proc/modules exists
makes no sense to look up if there are no modules.
seen on a piuparts installation of linux-2.6
Signed-off-by: maximilian attems <maks@debian.org>
Diffstat (limited to 'hook-functions')
-rw-r--r-- | hook-functions | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hook-functions b/hook-functions index 387fe60..9e3eef2 100644 --- a/hook-functions +++ b/hook-functions @@ -71,7 +71,8 @@ manual_add_modules() # Only print warning for missing fw of loaded module # or forced loaded module if [ ! -e "/lib/firmware/${firmware}" ] \ - && [ ! -e "/lib/firmware/${version}/${firmware}" ]; then + && [ ! -e "/lib/firmware/${version}/${firmware}" ] \ + && [ -e /proc/modules ]; then if grep -q "^$(basename "${mam_x}" .ko)[[:space:]]" \ /proc/modules \ || grep -q "^$(basename "${mam_x}" .ko)" \ |