projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gre: add different per-protocol prefixes to GRE-TAP IPv4/6 tunnel interfaces.
[openwrt/openwrt.git]
/
include
/
shell.sh
diff --git
a/include/shell.sh
b/include/shell.sh
index 6ee0cf6030ac5e0a71d7be1c2438c58ee9724caf..8f6f6f04bb414e5dc24851d6dceefe8d282782f4 100644
(file)
--- a/
include/shell.sh
+++ b/
include/shell.sh
@@
-13,3
+13,10
@@
isset() {
eval "var=\"\${$1}\""
[ -n "$var" ]
}
+
+md5s() {
+ cat "$@" | (
+ md5sum 2>/dev/null ||
+ md5
+ ) | awk '{print $1}'
+}