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
/
core_interface.sh
diff --git
a/package/firewall/files/lib/core_interface.sh
b/package/firewall/files/lib/core_interface.sh
index
aff6641
..
ed6a4b1
100644
(file)
--- a/
package/firewall/files/lib/core_interface.sh
+++ b/
package/firewall/files/lib/core_interface.sh
@@
-4,7
+4,10
@@
fw__uci_state_add() {
local var="$1"
local item="$2"
local var="$1"
local item="$2"
- local val="$(uci_get_state firewall core $var)"
+ local val=" $(uci_get_state firewall core $var) "
+ val="${val// $item / }"
+ val="${val# }"
+ val="${val% }"
uci_set_state firewall core $var "${val:+$val }$item"
}
uci_set_state firewall core $var "${val:+$val }$item"
}
This page took
0.029855 seconds
and
4
git commands to generate.