diff options
-rwxr-xr-x | scripts/prereq.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/scripts/prereq.sh b/scripts/prereq.sh index f86af6435..b9a47458c 100755 --- a/scripts/prereq.sh +++ b/scripts/prereq.sh @@ -596,11 +596,15 @@ fi printf " ---> checking if cpio is installed.. " host_build_cpio=0 -if ! which cpio >/dev/null 2>&1; then +if which cpio >/dev/null 2>&1; then + if ! cpio --version 2>/dev/null|grep GNU >/dev/null;then + printf "found but not usable\n" + host_build_cpio=1 + else + printf "found\n" + fi printf "not found\n" host_build_cpio=1 -else - printf "found\n" fi printf " ---> checking if xz is installed.. " |