dracut-functions.sh: only call ldd in find_binary() for "*.so*"

master
Harald Hoyer 2012-02-24 11:47:17 +01:00
parent d433da4473
commit 86bf239ede
1 changed files with 1 additions and 1 deletions

View File

@ -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