diff options
author | Sevinj Aghayeva <sevinj.aghayeva@gmail.com> | 2022-04-08 09:48:35 -0400 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-04-08 21:26:24 +0200 |
commit | 020418423b8385959470e287373f3b1811fa2eac (patch) | |
tree | eff9cc3a99414dd3e0605329f75f4d3a61bc4ef3 | |
parent | 83e5ef9fbb508b60aa0d1126a7eeae67ef65637c (diff) | |
download | mbuto-020418423b8385959470e287373f3b1811fa2eac.tar mbuto-020418423b8385959470e287373f3b1811fa2eac.tar.gz mbuto-020418423b8385959470e287373f3b1811fa2eac.tar.bz2 mbuto-020418423b8385959470e287373f3b1811fa2eac.tar.lz mbuto-020418423b8385959470e287373f3b1811fa2eac.tar.xz mbuto-020418423b8385959470e287373f3b1811fa2eac.tar.zst mbuto-020418423b8385959470e287373f3b1811fa2eac.zip |
mbuto: misc cleanup
Redirect modprobe to /dev/null to avoid verbose output. Remove unnecessary "/".
Signed-off-by: Sevinj Aghayeva <sevinj.aghayeva@gmail.com>
-rwxr-xr-x | mbuto | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -710,9 +710,9 @@ kmod_add() { for __t in ${__f}; do __t="$(${BASENAME} -- "${__t%*.ko}")" if ${MODPROBE} -S "${KERNEL}" -d "${__d_opt}" -q \ - --show-depends -- "$(${BASENAME} -- "${__t}")"; then + --show-depends -- "$(${BASENAME} -- "${__t}")" >/dev/null; then __src="$(${FIND} ${__find_path} -name "${__t}.ko")" - __dst="${wd}/${__src##${MODDIR}}" + __dst="${wd}${__src##${MODDIR}}" if ! "${DIFF}" "${__src}" "${__dst}" 2>/dev/null; then "${MKDIR}" -p "$("${DIRNAME}" "${__dst}")" "${CP}" -a "${__src}" "${__dst}" |