Created
April 8, 2018 06:47
-
-
Save scue/c8879958ea76dcbc1463eda4ada4e768 to your computer and use it in GitHub Desktop.
Search dynamic shared library existed or not.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
libs=" | |
libresolv.so | |
libncurses.so | |
libtinfo.so | |
libm.so | |
libc.so | |
" | |
search_paths=" | |
/lib | |
/lib32 | |
/libexec | |
/usr/lib | |
/usr/lib32 | |
/usr/libexec | |
/app/system/usr/lib | |
/thunder/lib | |
" | |
for lib in $libs; do | |
echo "==> searching $lib ..." | |
find $search_paths -name "$lib*" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment