[packages] miniupnpd: always (re)start from hotplug handler, make boot() a no-op (#11585)

git-svn-id: svn://svn.openwrt.org/openwrt/packages@32056 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow 2012-06-05 12:56:42 +00:00
parent 0c4dc4dee5
commit 486ebc7172
2 changed files with 5 additions and 5 deletions

View File

@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=miniupnpd
PKG_VERSION:=1.6.20110730
PKG_RELEASE:=5
PKG_RELEASE:=6
PKG_SOURCE_URL:=http://miniupnp.free.fr/files
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz

View File

@ -1,8 +1,8 @@
#!/bin/sh
/etc/init.d/miniupnpd enabled && [ -n "`pidof miniupnpd`" ] && [ "$ACTION" = "ifup" ] && {
local intif
for intif in $(uci_get upnpd config internal_iface); do
[ "$INTERFACE" = "$intif" ] && /etc/init.d/miniupnpd restart
/etc/init.d/miniupnpd enabled && [ "$ACTION" = "ifup" ] && {
local iface
for iface in $(uci_get upnpd config internal_iface; uci_get upnpd config external_iface); do
[ "$INTERFACE" = "$iface" ] && /etc/init.d/miniupnpd restart
done
}