make busybox autorebuild on relevant config changes
[openwrt/openwrt.git] / include / shell.sh
index 1e60692b97fffcc1864146345da6b761cbe6c3f7..db4100326277cce3c16e7f9cbb31b57f5bd1c591 100644 (file)
@@ -28,3 +28,7 @@ trapret() {(
                }
        }
 )}
+
+md5s() {
+       which md5sum 2>&- >&- && md5sum "$@" | awk '{print $1}' || md5 "$@"
+}