This commit is contained in:
illiliti 2020-04-18 18:45:24 +03:00
parent eaecf528bd
commit 68a5cfe5ad
2 changed files with 10 additions and 8 deletions

View File

@ -296,15 +296,12 @@ install_module()
while read -r module || [ "$module" ]; do
# strip unneeded stuff
module="${module##*builtin*}"
module="${module##*net*}"
module="${module#insmod }"
# exclude user specified modules if any
for _exclude_module in $modules_exclude; do
module="${module##*${_exclude_module}*}"
for _exclude_module in wmi gpu net sound builtin $modules_exclude; do
case "$module" in *"$_exclude_module"*) continue 2 ;; esac
done
module="${module#insmod }"
# check if module already installed
[ -e "$module" ] && [ ! -e "${workdir}${module}" ] &&
install -Dm644 "$module" "${workdir}${module}"
@ -423,7 +420,10 @@ install_binary()
while read -r _library || [ "$_library" ]; do
# strip unneeded stuff
_library="${_library##*vdso*}"
for _exclude_library in vdso gate; do
case "$_library" in *"$_exclude_library"*) continue 2 ;; esac
done
_library="${_library#* => }"
_library="${_library% *}"

View File

@ -71,6 +71,8 @@ prepare_environment()
trap 'panic "something went wrong"' EXIT
# false positive
# shellcheck disable=2015
[ "$modules" ] && modprobe -a "$modules" 2> /dev/null ||:
}