From a899c50a845fc9097d817643ac4dcfa55f454e9c Mon Sep 17 00:00:00 2001 From: illiliti Date: Thu, 27 Feb 2020 21:17:05 +0300 Subject: [PATCH] fix --- tinyramfs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tinyramfs b/tinyramfs index 05cf41e..f4b06c6 100755 --- a/tinyramfs +++ b/tinyramfs @@ -264,6 +264,9 @@ install_driver() { full_driver="${full_driver##*net*}" full_driver="${full_driver#insmod }" + # check empty + [ "$full_driver" ] || continue + # check if already installed [ -e "${workdir}${full_driver}" ] || install -Dm644 "$full_driver" "${workdir}${full_driver}" @@ -348,7 +351,8 @@ install_binary() { ldd "$fullbin" > /dev/null 2>&1 || return # exract paths to libraries - ldd "$fullbin" | sed -nr 's,.* (/.*lib.*/.*.so.*) .*,\1,p' | + ldd "$fullbin" | + sed -nr 's,.* (/.*lib.*/.*.so.*) .*,\1,p;s,.*(/lib.*/ld.*.so.*) .*,\1,p' | while read -r library; do install_library "$library"