/[gentoo-x86]/eclass/linux-mod.eclass
Gentoo

Diff of /eclass/linux-mod.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.24 Revision 1.25
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.24 2005/01/28 15:15:01 johnm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.25 2005/01/28 17:33:17 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
110update_modules() { 110update_modules() {
111 if [ -x /sbin/modules-update -a -d ${D}/etc/modules.d/ ] ; 111 if [ -x /sbin/modules-update -a \
112 then 112 -n "$(grep -v -e "^#" -e "^$" ${D}/etc/modules.d/*)" ] ; 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
117} 117}

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

  ViewVC Help
Powered by ViewVC 1.1.20