From: Michael Tremer Date: Wed, 31 May 2017 17:55:15 +0000 (+0200) Subject: Don't try identifying non-existant device when attaching to a zone X-Git-Tag: 009~240 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=01a079e0062d0d1a874455a88dd6af9cd0dfba34;p=network.git Don't try identifying non-existant device when attaching to a zone This resulted in an error message which is unnecessary. Fixes #11174 Signed-off-by: Michael Tremer --- diff --git a/src/functions/functions.zone b/src/functions/functions.zone index a04b0831..c7275060 100644 --- a/src/functions/functions.zone +++ b/src/functions/functions.zone @@ -730,7 +730,9 @@ zone_port_attach() { assert isset hook # Make the port briefly flash if supported - port_identify "${port}" --background + if device_exists ${port}; then + port_identify "${port}" --background + fi hook_zone_exec "${hook}" "port_attach" "${zone}" "${port}" "$@" local ret="${?}"