From 88b3ac3840cc993901f971a2a99046881d9e46c4 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Tue, 12 Jun 2018 13:54:15 +0200 Subject: network-scripts: Add previously dropped error checking When converting from brctl to ip-link, the call to exit in case bridge adding failed was dropped by accident. --- network-scripts/ifup-eth | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/network-scripts/ifup-eth b/network-scripts/ifup-eth index bbb17790..b55db79e 100755 --- a/network-scripts/ifup-eth +++ b/network-scripts/ifup-eth @@ -58,9 +58,9 @@ if [ "${TYPE}" = "Bridge" ]; then [ -n "${AGEING}" ] && bridge_opts+="ageing_time ${AGEING} " if [ ! -d /sys/class/net/${DEVICE}/bridge ]; then - ip link add ${DEVICE} type bridge $bridge_opts + ip link add ${DEVICE} type bridge $bridge_opts || exit 1 elif [ -n "${OPTS}" ]; then - ip link set ${DEVICE} type bridge $bridge_opts + ip link set ${DEVICE} type bridge $bridge_opts || exit 1 fi unset bridge_opts -- cgit v1.2.1