From dd703a8494647d401dbffa0f036233e08044ec60 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 --- network-scripts/ifup-eth | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'network-scripts') diff --git a/network-scripts/ifup-eth b/network-scripts/ifup-eth index 9448eae7..b559b5c4 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