1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-15 03:51:51 +00:00
openmptcprouter-feeds/openmptcprouter/files/etc/uci-defaults/2092-upnpd
Ycarus (Yannick Chabanois) 20b12a83bd For upnp disable
2024-11-13 16:57:34 +01:00

18 lines
393 B
Bash
Executable file

#!/bin/sh
if [ "$(uci -q get upnpd.config.external_ifac)" != "omrvpn" ]; then
uci -q batch <<-EOF >/dev/null
set upnpd.config.external_iface=omrvpn
set upnpd.config.enabled='0'
commit upnpd
EOF
fi
if [ "$(uci -q get upnpd.@perm_rule[0].ext_ports)" = "1024-65535" ]; then
uci -q batch <<-EOF >/dev/null
set upnpd.@perm_rule[0].ext_ports='1024-64999'
commit upnpd
EOF
fi
exit 0