mirror of
https://git.openwrt.org/feed/routing.git
synced 2025-01-08 11:47:51 +08:00
8ec1cd2f67
Fixes: Configuring minimalist-pcproxy. sh: 1: unknown operand Reported-by: Daniel Golle <daniel@makrotopia.org> Suggested-by: Daniel Golle <daniel@makrotopia.org> Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
17 lines
348 B
Bash
17 lines
348 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
|