diff options
-rwxr-xr-x | gen_moddeps.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gen_moddeps.sh b/gen_moddeps.sh index f175b72..6915746 100755 --- a/gen_moddeps.sh +++ b/gen_moddeps.sh @@ -18,7 +18,7 @@ gen_dep_list() { cat "${moddir}/modules.builtin" cat "${moddir}/modules.order" else - local -a modlist=() + local -a modlist=() moddeplist=() local mygroups for mygroups in ${!MODULES_*} GK_INITRAMFS_ADDITIONAL_KMODULES @@ -44,8 +44,7 @@ gen_dep_list() { local mydeps mymod while IFS=" " read -r -u 3 mymod mydeps do - echo ${mymod%:} - printf '%s\n' ${mydeps} + moddeplist+=( ${mymod%:} ${mydeps} ) done 3< <( local -a rxargs=( "${modlist[@]}" ) @@ -59,5 +58,7 @@ gen_dep_list() { cat "${moddir}/modules.dep" \ | grep -F "${rxargs[@]}" ) + + printf '%s\n' "${moddeplist[@]}" fi | xargs basename -s "${KEXT}" | sort | uniq } |