From: Eric Edgar Date: Wed, 13 Jul 2005 21:53:12 +0000 (+0000) Subject: Fix find|grep output X-Git-Tag: v3.4.10.902~494 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9e6ccb0835aaf647acb415fda5968f44c3f55f87;p=genkernel.git Fix find|grep output git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@258 67a159dc-881f-0410-a524-ba9dfbe2cb84 --- diff --git a/generic/initrd.scripts b/generic/initrd.scripts index ff4f301..6aa3881 100644 --- a/generic/initrd.scripts +++ b/generic/initrd.scripts @@ -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