[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:
parent
0c4dc4dee5
commit
486ebc7172
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user