diff options
author | John Mylchreest <johnm@gentoo.org> | 2005-01-28 17:33:17 +0000 |
---|---|---|
committer | John Mylchreest <johnm@gentoo.org> | 2005-01-28 17:33:17 +0000 |
commit | 629e79e6e60cae9e8b7acd4d2a777af6e7cea82b (patch) | |
tree | e9807ffa14ba517b412f615ff009ac490440bf19 /eclass/linux-mod.eclass | |
parent | Stable on sparc (diff) | |
download | historical-629e79e6e60cae9e8b7acd4d2a777af6e7cea82b.tar.gz historical-629e79e6e60cae9e8b7acd4d2a777af6e7cea82b.tar.bz2 historical-629e79e6e60cae9e8b7acd4d2a777af6e7cea82b.zip |
Changing detection of module.d/* file to see if the file is actually setting anything. if it isnt, dont bother running modules-update
Diffstat (limited to 'eclass/linux-mod.eclass')
-rw-r--r-- | eclass/linux-mod.eclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/linux-mod.eclass b/eclass/linux-mod.eclass index c3cb893dc46f..e139067756ed 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.24 2005/01/28 15:15:01 johnm Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.25 2005/01/28 17:33:17 johnm Exp $ # Description: This eclass is used to interface with linux-info in such a way # to provide the functionality required and initial functions @@ -108,8 +108,8 @@ update_depmod() { } update_modules() { - if [ -x /sbin/modules-update -a -d ${D}/etc/modules.d/ ] ; - then + if [ -x /sbin/modules-update -a \ + -n "$(grep -v -e "^#" -e "^$" ${D}/etc/modules.d/*)" ] ; then ebegin "Updating modules.conf" /sbin/modules-update eend $? |