aboutsummaryrefslogtreecommitdiffstats
path: root/network-scripts
diff options
context:
space:
mode:
authorBell <blevin@redhat.com>2019-08-21 11:54:30 +0300
committerJan Macku <jamacku@redhat.com>2019-08-21 10:54:30 +0200
commitdd703a8494647d401dbffa0f036233e08044ec60 (patch)
treeee8ff6d1977f0d8e2d8ffc2283301771e14c2cf8 /network-scripts
parent1fcae34d2fadb0ec46bd26b086b82ebefe033f65 (diff)
downloadinitscripts-dd703a8494647d401dbffa0f036233e08044ec60.tar
initscripts-dd703a8494647d401dbffa0f036233e08044ec60.tar.gz
initscripts-dd703a8494647d401dbffa0f036233e08044ec60.tar.bz2
initscripts-dd703a8494647d401dbffa0f036233e08044ec60.tar.xz
initscripts-dd703a8494647d401dbffa0f036233e08044ec60.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>
Diffstat (limited to 'network-scripts')
-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 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