aboutgitcode
diff options
context:
space:
mode:
-rwxr-xr-xmbuto8
1 files changed, 4 insertions, 4 deletions
diff --git a/mbuto b/mbuto
index 884a8bf..6306d37 100755
--- a/mbuto
+++ b/mbuto
@@ -693,17 +693,17 @@ kmod_add() {
info "Adding kernel module ${1}"
if [ -z "${MODDIR}" ]; then
- __d_opt=""
+ __d_opt="/"
__find_path="/lib/modules/${KERNEL}"
else
- __d_opt="-d ${MODDIR}"
+ __d_opt="${MODDIR}"
__find_path="${MODDIR}/lib/modules"
fi
- for __t in $("${MODPROBE}" -S "${KERNEL}" "${__d_opt}" -q \
+ for __t in $("${MODPROBE}" -S "${KERNEL}" -d "${__d_opt}" -q \
--show-depends "$(${BASENAME} ${1})"); do
__t="$(${BASENAME} "${__t%*.ko}")"
- if ${MODPROBE} -S "${KERNEL}" "${__d_opt}" -q \
+ if ${MODPROBE} -S "${KERNEL}" -d "${__d_opt}" -q \
--show-depends "$(${BASENAME} "${__t}")"; then
__src="$(${FIND} ${__find_path} -name "${__t}.ko")"
__dst="${wd}/${__src##${MODDIR}}"