#!/bin/sh

uci -q batch <<-EOT
	delete firewall.miniupnpd
	set firewall.miniupnpd=include
	set firewall.miniupnpd.type=script
	set firewall.miniupnpd.path=/usr/share/miniupnpd/firewall.include
	set firewall.miniupnpd.family=any
	set firewall.miniupnpd.reload=1
	commit firewall
EOT

/etc/init.d/miniupnpd enabled && {
	/etc/init.d/miniupnpd stop
	/etc/init.d/miniupnpd disable
}

exit 0
