2011-02-19 19:11:11 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2012-06-05 12:56:42 +00:00
|
|
|
/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
|
2011-06-09 17:04:06 +00:00
|
|
|
done
|
2011-02-19 19:11:11 +00:00
|
|
|
}
|