cleanup
This commit is contained in:
parent
eaecf528bd
commit
68a5cfe5ad
16
tinyramfs
16
tinyramfs
@ -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% *}"
|
||||
|
||||
|
@ -71,6 +71,8 @@ prepare_environment()
|
||||
|
||||
trap 'panic "something went wrong"' EXIT
|
||||
|
||||
# false positive
|
||||
# shellcheck disable=2015
|
||||
[ "$modules" ] && modprobe -a "$modules" 2> /dev/null ||:
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user