git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@469
67a159dc-881f-0410-a524-
ba9dfbe2cb84
# Copyright 2006-2006 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 13 Dec 2006; Chris Gianelloni <wolf31o2@gentoo.org> generic/modprobe:
+ Added a fix for similarly-named modules from bug #158017.
+
13 Dec 2006; Chris Gianelloni <wolf31o2@gentoo.org> gen_compile.sh:
Fixed up linking for dmraid for bug #157538.
. /etc/initrd.defaults
-usage()
-{
+usage() {
echo 'Usage:'
echo ' modprobe moduleprefix'
echo
}
# Pass module name to this function
-modules_dep_list()
-{
+modules_dep_list() {
if [ "$#" -lt '1' ]
then
echo 'modules_dep_list(): Improper usage!'
# Pass module deps list
-strip_mod_paths()
-{
+strip_mod_paths() {
local x
local ret
local myret
}
LOADED_MODULES=''
-is_module_already_loaded()
-{
+is_module_already_loaded() {
local x
if [ "$#" != '1' ]
then
return 1
}
-real_mod_path()
-{
+real_mod_path() {
# Find -name is no good since the return status is always zero
- find /lib/modules | grep "${1}${KSUFF}"
+ find /lib/modules | grep /"${1}${KSUFF}"
}
-modprobe2()
-{
+modprobe2() {
local x
local deps
local real_path