mirror of
https://github.com/nchevsky/systemrescue-zfs.git
synced 2025-12-06 07:12:01 +01:00
31 lines
785 B
Bash
Executable file
31 lines
785 B
Bash
Executable file
#!/bin/bash
|
|
errcnt=0
|
|
|
|
for curfile in /usr/bin/{*btrfs*,*xfs*,dislocker*,udp*,dump,restore} \
|
|
/usr/bin/{ms-sys,nwipe,whdd,zerofree} \
|
|
/opt/firefox*/firefox* \
|
|
/usr/lib/ntfs-3g/ntfs-plugin*.so \
|
|
/usr/lib/libgbm.so* \
|
|
/usr/lib/libdislocker.so*
|
|
do
|
|
test -x ${curfile} || continue
|
|
file --mime ${curfile} | grep -q -E "x-pie-executable|x-sharedlib" || continue
|
|
|
|
if ldd ${curfile} | grep -q -F 'not found'
|
|
then
|
|
echo "ERROR: Program ${curfile} is missing libraries"
|
|
ldd ${curfile}
|
|
errcnt=$((errcnt + 1))
|
|
fi
|
|
|
|
done
|
|
|
|
if [ ${errcnt} -eq 0 ]
|
|
then
|
|
echo "SUCCESS: Have not found any missing library"
|
|
exit 0
|
|
else
|
|
echo "FAILURE: Have found ${errcnt} issues"
|
|
exit 1
|
|
fi
|