#/bin/bash # Written by Jonathan Norman with help from "Zeqadious" echo -e "Written by Jonathan Norman with help from \"Zeqadious\".\n This script will test the binaries in /tools to see if they are \n linked against the host or not." for PROG in `find /tools/bin -type f` #do echo $PROG | cut -d"/" -f3 do echo ${PROG##*/} | tr -d '\n' echo -e ":\t\t\c" [ -L "$PROG" ] || ldd $PROG | grep /tools/lib/ld-linux.so.2 > /dev/null if [ $? = 0 ];then echo "PASS" else echo "FAIL" fi done