1
0
mirror of https://git.openwrt.org/feed/routing.git synced 2024-06-19 23:28:31 +02:00
openwrt-routing/minimalist-pcproxy/files/minimalist-pcproxy.defaults
Josef Schlehofer 8ec1cd2f67 minimalist-pcproxy: fix post install script
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>
2022-03-04 12:46:18 +01:00

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