Skip to content

Commit

Permalink
Fixed modules load check
Browse files Browse the repository at this point in the history
  • Loading branch information
pocopico committed May 2, 2022
1 parent 28c5753 commit 66e9c8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/loader-ext/target_exec.sh_
Expand Up @@ -81,7 +81,7 @@ _load_kmods() {
echo "Loading kmod #${_kmod_num} \"${kmod_file}\" for ${name} (args: ${_kmod_args})"
# shellcheck disable=SC2086
_kmodname="${kmod_file::-3}"
if [ $(lsmod | grep $_kmodname | wc -l) -eq 0 ]; then
if [ $(lsmod | grep -w $_kmodname | wc -l) -eq 0 ]; then
(cd "${name}" && insmod "${kmod_file}" ${_kmod_args})
if [ $? -ne 0 ]; then
echo "ERROR: kernel extensions \"${kmod_file}\" from ${name} failed to load"
Expand Down

0 comments on commit 66e9c8b

Please sign in to comment.