X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;ds=sidebyside;f=include%2Fshell.sh;h=db4100326277cce3c16e7f9cbb31b57f5bd1c591;hb=fb20784ee57e077def310a89faaf4107a13df24c;hp=1e60692b97fffcc1864146345da6b761cbe6c3f7;hpb=97c8cb1b64a660538b7ef6cf5a9b98f904a8bccc;p=openwrt-10.03%2F.git 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 "$@" +}