summaryrefslogtreecommitdiff
path: root/scripts/sha256sum
diff options
context:
space:
mode:
authorwbx <wbx@openbsd.my.domain>2015-12-11 20:03:11 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2015-12-11 22:09:56 +0100
commitfba2ff31928b18364c1934654169806f5c800e23 (patch)
tree54b21d52f020460253241439b29745b54c460a5a /scripts/sha256sum
parent08f07c80cd46b2d6495ebbfedd742255e9873d3b (diff)
rework prereq check
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Diffstat (limited to 'scripts/sha256sum')
-rwxr-xr-xscripts/sha256sum14
1 files changed, 0 insertions, 14 deletions
diff --git a/scripts/sha256sum b/scripts/sha256sum
deleted file mode 100755
index e70973364..000000000
--- a/scripts/sha256sum
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/usr/bin/env bash
-# This file is part of the OpenADK project. OpenADK is copyrighted
-# material, please see the LICENCE file in the top-level directory.
-
-if [ -x /usr/bin/sha256sum ]; then
- /usr/bin/sha256sum "$@"
-elif [ -x /bin/cksum ] && [ $(echo | cksum -a sha256) = 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b ]; then
- # we assume the arguments are exactly "-c" or "-c -"
- x=$(sed 's/^\([0-9a-fA-F]*\) *\([^ ].*\)$/SHA256 (\2) = \1/' | cksum -c -a sha256)
- [[ $x = *FAILED* ]] && exit 1
- exit 0
-else
- shasum -a 256 "$@"
-fi