1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-12 18:41:51 +00:00

Doesn't apply upnp firewall if not installed

This commit is contained in:
Ycarus (Yannick Chabanois) 2025-01-29 21:08:38 +01:00
parent a435e2ebad
commit 0e066a37f8

View file

@ -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'