From 36ae9056a2e6e09ac1d9fae84332e802d8a40528 Mon Sep 17 00:00:00 2001 From: Bell Date: Wed, 21 Aug 2019 11:54:30 +0300 Subject: ifup-eth: Fix bridge setting stp option Fixes https://bugzilla.redhat.com/1743522 An uninitialized variable was copied from a closed PR [1] to submitted PR [2]. [1] https://github.com/fedora-sysv/initscripts/pull/212 [2] https://github.com/fedora-sysv/initscripts/pull/213 Signed-off-by: Bell Levin (cherry picked from commit dd703a8494647d401dbffa0f036233e08044ec60) --- network-scripts/ifup-eth | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network-scripts/ifup-eth b/network-scripts/ifup-eth index b55db79e..68f8a0bf 100755 --- a/network-scripts/ifup-eth +++ b/network-scripts/ifup-eth @@ -59,7 +59,7 @@ if [ "${TYPE}" = "Bridge" ]; then if [ ! -d /sys/class/net/${DEVICE}/bridge ]; then ip link add ${DEVICE} type bridge $bridge_opts || exit 1 - elif [ -n "${OPTS}" ]; then + elif [ -n "${bridge_opts}" ]; then ip link set ${DEVICE} type bridge $bridge_opts || exit 1 fi unset bridge_opts -- cgit v1.2.1