1
0
mirror of https://git.openwrt.org/feed/routing.git synced 2024-06-18 13:13:56 +02:00
openwrt-routing/minimalist-pcproxy/files/minimalist-pcproxy.defaults
Steven Barth 14204998ea minimalist-pcpproxy: fix uci call in default-script
Signed-off-by: Steven Barth <steven@midlink.org>
2015-07-15 08:29:48 +02:00

17 lines
346 B
Bash

#!/bin/sh
if [ `uci -q get upnpd.config._pcproxy_configured` = "1" ]
then
exit
fi
uci batch <<EOF
set upnpd.config.enable_upnp=0
set upnpd.config.pcp_allow_thirdparty=1
set upnpd.config.internal_iface=loopback
set upnpd.config.ipv6_listening_ip=::1
set upnpd.config.external_zone=wan
set upnpd.config._pcproxy_configured=1
commit upnpd
EOF