miniupnpd: Fixed hotplug script's DEVICE handling.

This commit is contained in:
Markus Stenberg 2014-06-25 11:09:18 +03:00
parent 6c553c24c0
commit 20c981679d
1 changed files with 3 additions and 1 deletions

View File

@ -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