Avoid waiting for bridge interface if disabled in sysconfig/lxc | lxc-net via USE_LXC_BRIDGE

Signed-off-by: Torsten Fohrer <tfohrer@googlemail.com>
This commit is contained in:
Torsten Fohrer 2017-03-30 11:55:28 +02:00
parent 1a9eaaab20
commit 723d30f7ff

View File

@ -51,6 +51,8 @@ fi
# to start
wait_for_bridge()
{
[ "x$USE_LXC_BRIDGE" = "xtrue" ] || { return 0; }
local BRNAME try flags br
[ -f "$sysconfdir"/lxc/default.conf ] || { return 0; }