mirror of
https://github.com/szehl/ath9k-hmac.git
synced 2025-01-18 10:36:24 +00:00
12 lines
224 B
Bash
Executable File
12 lines
224 B
Bash
Executable File
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")
|
|
}
|