aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBell <blevin@redhat.com>2019-08-21 11:54:30 +0300
committerLukáš Nykrýn <lnykryn@redhat.com>2019-08-23 11:43:42 +0200
commit36ae9056a2e6e09ac1d9fae84332e802d8a40528 (patch)
treebb45f113b69413884a3dc779a2f05ce2a0cd8583
parentd531e7b20c94b08cad316bd151780dbe5a261f24 (diff)
downloadinitscripts-36ae9056a2e6e09ac1d9fae84332e802d8a40528.tar
initscripts-36ae9056a2e6e09ac1d9fae84332e802d8a40528.tar.gz
initscripts-36ae9056a2e6e09ac1d9fae84332e802d8a40528.tar.bz2
initscripts-36ae9056a2e6e09ac1d9fae84332e802d8a40528.tar.xz
initscripts-36ae9056a2e6e09ac1d9fae84332e802d8a40528.zip
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 <blevin@redhat.com> (cherry picked from commit dd703a8494647d401dbffa0f036233e08044ec60)
-rwxr-xr-xnetwork-scripts/ifup-eth2
1 files changed, 1 insertions, 1 deletions
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