summaryrefslogtreecommitdiff
path: root/scripts/cpio
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-02-09 00:25:56 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-02-09 00:25:56 +0100
commit91e7244abc54001dc7b1063cd1b9818d46128bba (patch)
tree337561dc7607e107682cfea2e972dc03b7917ca8 /scripts/cpio
parent254ae86e16cddf282b36c0593148e24151ce1f96 (diff)
freebsd cpio is in /usr/bin
Diffstat (limited to 'scripts/cpio')
-rwxr-xr-xscripts/cpio6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/cpio b/scripts/cpio
index 2a12d4ffe..fc671ca48 100755
--- a/scripts/cpio
+++ b/scripts/cpio
@@ -2,4 +2,8 @@
# 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 "$@"
+if [ -x /usr/bin/cpio ];then
+ /usr/bin/cpio --quiet "$@"
+else
+ /bin/cpio --quiet "$@"
+fi