aboutgitcode
diff options
context:
space:
mode:
-rwxr-xr-xmbuto7
1 files changed, 4 insertions, 3 deletions
diff --git a/mbuto b/mbuto
index 693aaaa..4ffe549 100755
--- a/mbuto
+++ b/mbuto
@@ -868,11 +868,12 @@ kmod_add() {
;;
*)
for __t in ${__f}; do
- __t="$(${BASENAME} -- "${__t%*.ko}")"
+ __t="$(${BASENAME} -- "${__t}")"
+ __t="${__t%%.*}"
if ${MODPROBE} -S "${KERNEL}" -d "${__d_opt}" -q \
--show-depends -- "$(${BASENAME} -- "${__t}")" >/dev/null; then
- __src="$(${FIND} ${__find_path} -name "${__t}.ko")"
+ __src="$(${FIND} ${__find_path} -name "${__t}.*")"
[ -z "${__src}" ] && continue
__dst="${wd}${__src##${MODDIR}}"
@@ -881,7 +882,7 @@ kmod_add() {
"${CP}" -a "${__src}" "${__dst}"
fi
- kmod_node "${1}"
+ kmod_node "${__t}"
fi
done
esac