3b70e33939
- better integration with uci firewall - add options to configure external and internal interface - trigger add/remove of upnp rules with hotplug - use start-stop-daemon in initscript - drop miniupnpd iptables heler scripts git-svn-id: svn://svn.openwrt.org/openwrt/packages@13742 3c298f89-4303-0410-b956-a3cf2f4a3e73
15 lines
248 B
Bash
15 lines
248 B
Bash
#!/bin/sh
|
|
|
|
/etc/init.d/miniupnpd enabled && killall -0 miniupnpd 2>/dev/null && {
|
|
. /lib/miniupnpd/firewall.sh
|
|
|
|
[ "$ACTION" = "ifup" ] && {
|
|
upnp_firewall_delif
|
|
upnp_firewall_addif
|
|
}
|
|
|
|
[ "$ACTION" = "ifdown" ] && {
|
|
upnp_firewall_delif
|
|
}
|
|
}
|