projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kernel: add md5sum of kernel
[openwrt.git]
/
package
/
firewall
/
files
/
lib
/
fw.sh
diff --git
a/package/firewall/files/lib/fw.sh
b/package/firewall/files/lib/fw.sh
index
3549f8a
..
16a39b6
100644
(file)
--- a/
package/firewall/files/lib/fw.sh
+++ b/
package/firewall/files/lib/fw.sh
@@
-218,3
+218,12
@@
fw_get_family_mode() {
esac
}
esac
}
+fw_get_negation() {
+ local _var="$1"
+ local _flag="$2"
+ local _ipaddr="$3"
+
+ [ "${_ipaddr#!}" != "$_ipaddr" ] && \
+ export -n -- "$_var=! $_flag ${_ipaddr#!}" || \
+ export -n -- "$_var=${_ipaddr:+$_flag $_ipaddr}"
+}
This page took
0.037508 seconds
and
4
git commands to generate.