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

View File

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