packages/net/miniupnpd/files/miniupnpd.iface.hotplug

8 lines
224 B
Plaintext
Raw Normal View History

#!/bin/sh
/etc/init.d/miniupnpd enabled && [ -n "`pidof miniupnpd`" ] && {
local intif="$(uci_get upnpd config internal_iface)"
[ "$ACTION" = "ifup" ] && [ "$INTERFACE" = "$intif" ] && \
/etc/init.d/miniupnpd restart
}