/[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.41 Revision 1.42
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.41 2005/07/05 13:34:45 johnm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.42 2005/07/05 13:39:26 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.
192 local OLDDIR=${ROOT}/usr/share/module-rebuild/ 192 local OLDDIR=${ROOT}/usr/share/module-rebuild/
193 local NEWDIR=${ROOT}/var/lib/module-rebuild/ 193 local NEWDIR=${ROOT}/var/lib/module-rebuild/
194 194
195 if [[ -f ${OLDDIR}/moduledb ]]; then 195 if [[ -f ${OLDDIR}/moduledb ]]; then
196 [[ ! -d ${NEWDIR} ]] && mkdir -p ${NEWDIR} 196 [[ ! -d ${NEWDIR} ]] && mkdir -p ${NEWDIR}
197 [[ ! -f ${NEWDIR}/moduledb ]] && \
197 mv ${OLDDIR}/moduledb ${NEWDIR}/moduledb 198 mv ${OLDDIR}/moduledb ${NEWDIR}/moduledb
199 rm -f ${OLDDIR}/*
198 rmdir ${OLDDIR} 200 rmdir ${OLDDIR}
199 fi 201 fi
200} 202}
201 203
202update_moduledb() { 204update_moduledb() {

Legend:
Removed from v.1.41  
changed lines
  Added in v.1.42

  ViewVC Help
Powered by ViewVC 1.1.20