diff options
-rwxr-xr-x | mbuto | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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}}" |