projects
/
librecmc
/
librecmc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
kernel: update bgmac by adding Florian's upstream changes
[librecmc/librecmc.git]
/
include
/
shell.sh
diff --git
a/include/shell.sh
b/include/shell.sh
index 1e60692b97fffcc1864146345da6b761cbe6c3f7..6389304c24bdd7f798b3a71f957dbfaad9cfa3e5 100644
(file)
--- a/
include/shell.sh
+++ b/
include/shell.sh
@@
-28,3
+28,10
@@
trapret() {(
}
}
)}
+
+md5s() {
+ cat "$@" | (
+ md5sum 2>/dev/null ||
+ md5
+ ) | awk '{print $1}'
+}