packages/net/miniupnpd/files/miniupnpd.iface.hotplug
jow 486ebc7172 [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
2012-06-05 12:56:42 +00:00

9 lines
250 B
Bash

#!/bin/sh
/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
}