miniupnpd: Fixed hotplug script's DEVICE handling.
This commit is contained in:
parent
6c553c24c0
commit
20c981679d
1 changed files with 3 additions and 1 deletions
|
@ -14,9 +14,11 @@ fi
|
||||||
# - check only on ifup (otherwise lease updates etc would cause
|
# - check only on ifup (otherwise lease updates etc would cause
|
||||||
# miniupnpd state loss)
|
# miniupnpd state loss)
|
||||||
|
|
||||||
|
|
||||||
[ ! "$ACTION" = "ifup" ] && service_check /usr/sbin/miniupnpd && exit 0
|
[ ! "$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 iface
|
||||||
local ext_iface
|
local ext_iface
|
||||||
local ext_iface6
|
local ext_iface6
|
||||||
|
|
Loading…
Reference in a new issue