summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorStefan Schweizer <genstef@gentoo.org>2005-02-06 20:36:42 +0000
committerStefan Schweizer <genstef@gentoo.org>2005-02-06 20:36:42 +0000
commitc1594ff0b8c305ca4b36a0661c9b0b8201fb8264 (patch)
tree77467c08c7fca29b0f00d6863ae4da9fd553effd /eclass
parentold (diff)
downloadgentoo-2-c1594ff0b8c305ca4b36a0661c9b0b8201fb8264.tar.gz
gentoo-2-c1594ff0b8c305ca4b36a0661c9b0b8201fb8264.tar.bz2
gentoo-2-c1594ff0b8c305ca4b36a0661c9b0b8201fb8264.zip
gagging grep
Diffstat (limited to 'eclass')
-rw-r--r--eclass/linux-mod.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/linux-mod.eclass b/eclass/linux-mod.eclass
index d46a45d411c3..ecaa0089c3d3 100644
--- a/eclass/linux-mod.eclass
+++ b/eclass/linux-mod.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.28 2005/02/01 10:02:02 johnm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.29 2005/02/06 20:36:42 genstef Exp $
# Description: This eclass is used to interface with linux-info in such a way
# to provide the functionality required and initial functions
@@ -134,8 +134,8 @@ update_depmod() {
}
update_modules() {
- if [ -x /sbin/modules-update -a \
- -n "$(grep -v -e "^#" -e "^$" ${D}/etc/modules.d/*)" ] ; then
+ if [ -x /sbin/modules-update ] && \
+ grep -v -e "^#" -e "^$" ${D}/etc/modules.d/* >/dev/null 2>&1; then
ebegin "Updating modules.conf"
/sbin/modules-update
eend $?