[include] target: Added coreutils to list of default packages. It doesn't build...
[openwrt/svn-archive/archive.git] / include / shell.sh
index 1e60692b97fffcc1864146345da6b761cbe6c3f7..634beedcef3e17d351f440a765c251ae16f50737 100644 (file)
@@ -28,3 +28,10 @@ trapret() {(
                }
        }
 )}
+
+md5s() {
+       cat "$@" | (
+               md5sum 2>/dev/null ||
+               md5 
+       ) | awk '{print $1}'
+}