summaryrefslogtreecommitdiff
path: root/include/shell.sh
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-03-23 19:13:08 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-03-23 19:13:08 +0000
commit000393712e9f30897feb5d592cc6901777494ab4 (patch)
tree93e5c52e874952ea675224e92e0911f8105a9324 /include/shell.sh
parent437ffd097074a8d756bcfaad18ca7df8388b1701 (diff)
downloadmtk-20170518-000393712e9f30897feb5d592cc6901777494ab4.zip
mtk-20170518-000393712e9f30897feb5d592cc6901777494ab4.tar.gz
mtk-20170518-000393712e9f30897feb5d592cc6901777494ab4.tar.bz2
make busybox autorebuild on relevant config changes
SVN-Revision: 6651
Diffstat (limited to 'include/shell.sh')
-rw-r--r--include/shell.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/shell.sh b/include/shell.sh
index 1e60692..db41003 100644
--- a/include/shell.sh
+++ b/include/shell.sh
@@ -28,3 +28,7 @@ trapret() {(
}
}
)}
+
+md5s() {
+ which md5sum 2>&- >&- && md5sum "$@" | awk '{print $1}' || md5 "$@"
+}