Fix find|grep output
authorEric Edgar <rocket@gentoo.org>
Wed, 13 Jul 2005 21:53:12 +0000 (21:53 +0000)
committerEric Edgar <rocket@gentoo.org>
Wed, 13 Jul 2005 21:53:12 +0000 (21:53 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@258 67a159dc-881f-0410-a524-ba9dfbe2cb84

generic/initrd.scripts

index ff4f301e2bfd846232e394b5161cf7050cd30945..6aa38819cdac4b1a581f2fcf0efbb848809f257e 100644 (file)
@@ -41,7 +41,7 @@ modules_scan() {
                then
                        [ -n "${DEBUG}" ] && echo -ne "${BOLD}   ::${NORMAL} Checking for ${x}..."
                        # find -name does not work since the return status is always zero
-                       if find /lib/modules | grep "${x}${KSUFF}" 2>/dev/null
+                       if find /lib/modules | grep "${x}${KSUFF}" >/dev/null 2>&1
                        then
                                echo -ne "${BOLD}   ::${NORMAL} Scanning for ${x}..."
                                modprobe ${x} -n