From 762fabf024e182020597a4c68636625da66b2ac0 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 6 Oct 2017 12:38:14 +0200 Subject: Removing some dead code in network-veth-extra handling. This stuff is redundant when using bridges, and not using bridges has never worked anyway, hence removing it. Signed-off-by: Daniel Baumann --- lib/container/stop | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/container/stop') diff --git a/lib/container/stop b/lib/container/stop index 12cf7fa..6b1c986 100755 --- a/lib/container/stop +++ b/lib/container/stop @@ -176,14 +176,14 @@ case "${CLEAN}" in fi # Removing network configuration - NETWORK_VETH_EXTRA_CONF="$(awk -F= '/^network-veth-extra=/ { print $2 }' ${CONFIG}/${NAME}.conf)" + VETHS="$(awk -F= '/^network-veth-extra=/ { print $2 }' ${CONFIG}/${NAME}.conf)" - case "${NETWORK_VETH_EXTRA_CONF}" in + case "${VETHS}" in "") ;; *) - for VETH in ${NETWORK_VETH_EXTRA_CONF} + for VETH in ${VETHS} do INTERFACE="$(echo ${VETH} | awk -F: '{ print $1 }')" FILE="/etc/network/interfaces.d/${INTERFACE}" -- cgit v1.2.3