1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-13 19:11:51 +00:00
openmptcprouter-feeds/openmptcprouter/files/etc/uci-defaults/2092-upnpd

18 lines
362 B
Text
Raw Normal View History

#!/bin/sh
if [ "$(uci -q get upnpd.config.external_ifac)" != "omrvpn" ]; then
uci -q batch <<-EOF >/dev/null
set upnpd.config.external_iface=omrvpn
commit upnpd
EOF
fi
2021-04-07 16:17:45 +00:00
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