| 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.80 2008/04/03 14:58:59 genstef Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.81 2008/04/03 16:11:24 cardoe 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. |
| … | |
… | |
| 402 | fi |
402 | fi |
| 403 | |
403 | |
| 404 | #----------------------------------------------------------------------- |
404 | #----------------------------------------------------------------------- |
| 405 | |
405 | |
| 406 | # then we install it |
406 | # then we install it |
| 407 | if kernel_is ge 2 6 |
407 | if kernel_is ge 2 6; then |
| 408 | insinto /etc/modprobe.d |
408 | insinto /etc/modprobe.d |
| 409 | else |
409 | else |
| 410 | insinto /etc/modules.d |
410 | insinto /etc/modules.d |
| 411 | fi |
411 | fi |
| 412 | newins ${module_config} ${currm_path//*\/} |
412 | newins ${module_config} ${currm_path//*\/} |