[packages] miniupnpd: properly handle multiple internal interfaces in hotplug helper...
[openwrt/svn-archive/archive.git] / net / miniupnpd / files / miniupnpd.iface.hotplug
1 #!/bin/sh
2
3 /etc/init.d/miniupnpd enabled && [ -n "`pidof miniupnpd`" ] && [ "$ACTION" = "ifup" ] && {
4 local intif
5 for intif in $(uci_get upnpd config internal_iface); do
6 [ "$INTERFACE" = "$intif" ] && /etc/init.d/miniupnpd restart
7 done
8 }