mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-12 10:31:51 +00:00
Doesn't apply upnp firewall if not installed
This commit is contained in:
parent
a435e2ebad
commit
0e066a37f8
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ if [ "$(uci -q get firewall.ttl)" = "" ]; then
|
||||||
commit firewall
|
commit firewall
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
if [ "$(uci -q get firewall.upnp)" = "" ]; then
|
if [ "$(uci -q get firewall.upnp)" = "" ] && [ -e /etc/init.d/miniupnpd ]; then
|
||||||
uci -q batch <<-EOF >/dev/null
|
uci -q batch <<-EOF >/dev/null
|
||||||
set firewall.upnp=include
|
set firewall.upnp=include
|
||||||
set firewall.upnp.path='/etc/firewall.upnp'
|
set firewall.upnp.path='/etc/firewall.upnp'
|
||||||
|
|
Loading…
Reference in a new issue