2 upnpd_enabled=$(nvram get upnp_enabled)
3 if [ "$upnpd_enabled" = "1" ]; then
4 echo "miniupnpd starting ..."
5 iptables_flush.sh 2>&- >&-
7 iptables_removeall.sh 2>&- >&-
9 upnpd_log=$(nvram get upnpd_log_output)
10 if [ "$upnpd_log" = "1" ]; then
11 miniupnpd -i $(nvram get wan_ifname) -a $(nvram get lan_ipaddr) -p 5000 -U -d | logger -t miniupnpd &
13 miniupnpd -i $(nvram get wan_ifname) -a $(nvram get lan_ipaddr) -p 5000 -U
16 echo "miniupnpd service is disabled. Set nvram upnp_enabled to '1' to enable."