This commit is contained in:
Ing 2023-06-04 19:43:57 +08:00
parent 522a73a25f
commit 50c04971c1

View File

@ -64,9 +64,8 @@ function getdepends() {
function _getdepends() {
if [ -f "${TMP_PATH}/modules/${1}.ko" ]; then
depends=(`modinfo "${TMP_PATH}/modules/${1}.ko" | grep depends: | awk -F: '{print $2}' | awk '$1=$1' | sed 's/,/ /g'`)
if [ ${#depends[*]} > 0 ]; then
for k in ${depends[@]}
do
if [ ${#depends[*]} -gt 0 ]; then
for k in ${depends[@]}; do
echo "${k}"
_getdepends "${k}"
done