From: Harald Hoyer Date: Fri, 24 Feb 2012 10:47:17 +0000 (+0100) Subject: dracut-functions.sh: only call ldd in find_binary() for "*.so*" X-Git-Tag: 017~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=86bf239ededef807205f7ebd0ae014d10534e1be;p=thirdparty%2Fdracut.git dracut-functions.sh: only call ldd in find_binary() for "*.so*" --- diff --git a/dracut-functions.sh b/dracut-functions.sh index e20f81e04..a5640d681 100755 --- a/dracut-functions.sh +++ b/dracut-functions.sh @@ -470,7 +470,7 @@ inst_library() { # search in the usual places to find the binary. find_binary() { if [[ -z ${1##/*} ]]; then - if [[ -x $1 ]] || ldd $1 &>/dev/null; then + if [[ -x $1 ]] || { strstr "$1" ".so" && ldd $1 &>/dev/null; }; then echo $1 return 0 fi