projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
applications/luci-fw: Added support for luci-mini
[project/luci.git]
/
applications
/
luci-fw
/
root
/
etc
/
init.d
/
luci_fw
diff --git
a/applications/luci-fw/root/etc/init.d/luci_fw
b/applications/luci-fw/root/etc/init.d/luci_fw
index
5f09b52
..
86d8a56
100755
(executable)
--- a/
applications/luci-fw/root/etc/init.d/luci_fw
+++ b/
applications/luci-fw/root/etc/init.d/luci_fw
@@
-15,6
+15,8
@@
apply_portfw() {
[ -n "$ifname" ] || return 0
[ -n "$to" ] || return 0
+ dport=$(echo $dport | sed -e 's/-/:/')
+
ports=$(echo $to | cut -sd: -f2)
if [ -n "$ports" ]; then
ports="--dport $(echo $ports | sed -e 's/-/:/')"