Unpack intel microcode before initramfs images are being built
[people/pmueller/ipfire-2.x.git] / tools / find-missing-libs.sh
CommitLineData
21eead8d
MT
1#!/bin/bash
2# This scripts lists binaries that have missing libraries.
3# Arguments are paths to search in
4
5main() {
6 local path
7 for path in $@; do
8 local file
9 for file in $(find "${path}" -type f); do
10 if ldd "${file}" 2>/dev/null | grep -q "not found"; then
11 echo "${file}"
12 ldd "${file}"
13 fi
14 done
15 done
16}
17
18main "$@" || exit $?