Fix find|grep output

git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@258 67a159dc-881f-0410-a524-ba9dfbe2cb84
cleanup-cruft
Eric Edgar 20 years ago
parent 74ea9cdbda
commit 9e6ccb0835

@ -41,7 +41,7 @@ modules_scan() {
then then
[ -n "${DEBUG}" ] && echo -ne "${BOLD} ::${NORMAL} Checking for ${x}..." [ -n "${DEBUG}" ] && echo -ne "${BOLD} ::${NORMAL} Checking for ${x}..."
# find -name does not work since the return status is always zero # 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 then
echo -ne "${BOLD} ::${NORMAL} Scanning for ${x}..." echo -ne "${BOLD} ::${NORMAL} Scanning for ${x}..."
modprobe ${x} -n modprobe ${x} -n

Loading…
Cancel
Save