packages/net/miniupnpd/files/miniupnpd.iface.hotplug
jow ebe91cc5fe [packages] miniupnpd: properly handle multiple internal interfaces in hotplug helper (#9538)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@27151 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-06-09 17:04:06 +00:00

9 lines
243 B
Bash

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