summaryrefslogtreecommitdiffstats
path: root/include/shell.sh
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-03-23 19:13:08 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-03-23 19:13:08 +0000
commitc3241962560c5e114f3bbc3e7f1a52917730993e (patch)
tree51d334bb81e3af89f8afaffeae6940043cb256bd /include/shell.sh
parent78a4e88e7631e101b3917c58d9de741768598e7a (diff)
make busybox autorebuild on relevant config changes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6651 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 1e60692b9..db4100326 100644
--- a/include/shell.sh
+++ b/include/shell.sh
@@ -28,3 +28,7 @@ trapret() {(
}
}
)}
+
+md5s() {
+ which md5sum 2>&- >&- && md5sum "$@" | awk '{print $1}' || md5 "$@"
+}