summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-01-02 13:22:53 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-01-02 13:22:53 +0100
commit34592482701199604242848b80c39bd07b6c7716 (patch)
tree20005f94a48d069c3cfd115b1325cb44f92334fb /scripts
parentdfadb4d959da4c63d0c634f0d50713f3fa679e50 (diff)
parentd9a3994a44d79ed167f41db09edd0dae41566b55 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/install.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/install.sh b/scripts/install.sh
index 8eb6ee062..7b3b5bc4d 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -201,10 +201,10 @@ if (( cyls < (cfgfs + 2) )); then
exit 1
fi
-if stat --help >/dev/null 2>&1; then
- statcmd='stat -c %s' # GNU stat
-else
+if stat -qs .>/dev/null 2>&1; then
statcmd='stat -f %z' # BSD stat (or so we assume)
+else
+ statcmd='stat -c %s' # GNU stat
fi
if ! T=$(mktemp -d /tmp/openadk.XXXXXXXXXX); then