From 9e6ccb0835aaf647acb415fda5968f44c3f55f87 Mon Sep 17 00:00:00 2001 From: Eric Edgar Date: Wed, 13 Jul 2005 21:53:12 +0000 Subject: [PATCH] Fix find|grep output git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@258 67a159dc-881f-0410-a524-ba9dfbe2cb84 --- generic/initrd.scripts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2