Sign in
kernel
/
pub
/
scm
/
linux
/
kernel
/
git
/
iwlwifi
/
backport-iwlwifi
/
2adeffe943f87b4629fc681bb29b145ec8380b6e
/
.
/
scripts
/
mod_helpers.sh
blob: 0845b3e3a047c688905d40024b6e7eedee473f7b [
file
] [
log
] [
blame
]
function
mod_filename
()
{
which modinfo
>
/
dev
/
null
2
>&
1
if
[[
$
?
-
eq
0
]];
then
MOD_QUERY
=
"modinfo -F filename"
else
MOD_QUERY
=
"modprobe -l"
fi
mod_path
=
"$($MOD_QUERY $1 | tail -1)"
echo $
(
basename
"$mod_path"
)
}