diff options
author | Bell <blevin@redhat.com> | 2019-08-21 11:54:30 +0300 |
---|---|---|
committer | Jan Macku <jamacku@redhat.com> | 2019-08-21 10:54:30 +0200 |
commit | dd703a8494647d401dbffa0f036233e08044ec60 (patch) | |
tree | ee8ff6d1977f0d8e2d8ffc2283301771e14c2cf8 | |
parent | 1fcae34d2fadb0ec46bd26b086b82ebefe033f65 (diff) | |
download | initscripts-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>
-rwxr-xr-x | network-scripts/ifup-eth | 2 |
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 |