summaryrefslogtreecommitdiff
path: root/scripts/cpio
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/cpio')
-rwxr-xr-xscripts/cpio16
1 files changed, 15 insertions, 1 deletions
diff --git a/scripts/cpio b/scripts/cpio
index 2a12d4ffe..1c481221e 100755
--- a/scripts/cpio
+++ b/scripts/cpio
@@ -2,4 +2,18 @@
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.
-/bin/cpio --quiet "$@"
+os=$(uname)
+case $os in
+ NetBSD|MirBSD)
+ quiet=""
+ ;;
+ *)
+ quiet="--quiet"
+ ;;
+esac
+if [ -x /usr/bin/cpio ];then
+ /usr/bin/cpio $quiet "$@"
+else
+ /bin/cpio $quiet "$@"
+fi
+