diff options
| author | Markus Stenberg | 2014-06-25 08:09:18 +0000 |
|---|---|---|
| committer | Markus Stenberg | 2014-06-25 08:09:18 +0000 |
| commit | 20c981679da340f7cc8422d61d0d3fadcd7768cb (patch) | |
| tree | 5274d3fa11dbcc24a64a64205cfb00ff2f00e36e | |
| parent | 6c553c24c0c10ae64f1077a3fa332b10fd0a2f41 (diff) | |
| download | routing-20c981679da340f7cc8422d61d0d3fadcd7768cb.tar.gz | |
miniupnpd: Fixed hotplug script's DEVICE handling.
| -rw-r--r-- | miniupnpd/files/miniupnpd.hotplug | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/miniupnpd/files/miniupnpd.hotplug b/miniupnpd/files/miniupnpd.hotplug index a98a50c..c380538 100644 --- a/miniupnpd/files/miniupnpd.hotplug +++ b/miniupnpd/files/miniupnpd.hotplug @@ -14,9 +14,11 @@ fi # - check only on ifup (otherwise lease updates etc would cause # miniupnpd state loss) - [ ! "$ACTION" = "ifup" ] && service_check /usr/sbin/miniupnpd && exit 0 +# DEVICE is set only in ifup as of 20140625 netifd +[ -z "$DEVICE" ] && network_get_device DEVICE $INTERFACE + local iface local ext_iface local ext_iface6 |