| 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.23 2005/01/16 23:53:00 johnm Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.24 2005/01/28 15:15:01 johnm 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. |
| … | |
… | |
| 106 | ewarn |
106 | ewarn |
| 107 | fi |
107 | fi |
| 108 | } |
108 | } |
| 109 | |
109 | |
| 110 | update_modules() { |
110 | update_modules() { |
| 111 | if [ -x /sbin/modules-update ] ; |
111 | if [ -x /sbin/modules-update -a -d ${D}/etc/modules.d/ ] ; |
| 112 | then |
112 | then |
| 113 | ebegin "Updating modules.conf" |
113 | ebegin "Updating modules.conf" |
| 114 | /sbin/modules-update |
114 | /sbin/modules-update |
| 115 | eend $? |
115 | eend $? |
| 116 | fi |
116 | fi |