1 | # Copyright 1999-2004 Gentoo Foundation |
1 | # Copyright 1999-2004 Gentoo Foundation |
2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.28 2005/02/01 10:02:02 johnm Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.29 2005/02/06 20:36:42 genstef Exp $ |
4 | |
4 | |
5 | # Description: This eclass is used to interface with linux-info in such a way |
5 | # Description: This eclass is used to interface with linux-info in such a way |
6 | # to provide the functionality required and initial functions |
6 | # to provide the functionality required and initial functions |
7 | # required to install external modules against a kernel source |
7 | # required to install external modules against a kernel source |
8 | # tree. |
8 | # tree. |
… | |
… | |
132 | ewarn |
132 | ewarn |
133 | fi |
133 | fi |
134 | } |
134 | } |
135 | |
135 | |
136 | update_modules() { |
136 | update_modules() { |
137 | if [ -x /sbin/modules-update -a \ |
137 | if [ -x /sbin/modules-update ] && \ |
138 | -n "$(grep -v -e "^#" -e "^$" ${D}/etc/modules.d/*)" ] ; then |
138 | grep -v -e "^#" -e "^$" ${D}/etc/modules.d/* >/dev/null 2>&1; then |
139 | ebegin "Updating modules.conf" |
139 | ebegin "Updating modules.conf" |
140 | /sbin/modules-update |
140 | /sbin/modules-update |
141 | eend $? |
141 | eend $? |
142 | fi |
142 | fi |
143 | } |
143 | } |