[fix] Correct logic for verbose flag

This commit is contained in:
William Wernert
2021-01-15 13:39:12 -05:00
parent 9cf63545bc
commit 9726ff9ce6

View File

@@ -48,7 +48,7 @@ add_interface_bond0() {
esac
for i in rx tx sg tso ufo gso gro lro; do
if [[ $verbose != true ]]; then
if [[ $verbose == true ]]; then
ethtool -K "$BNIC" $i off
else
ethtool -K "$BNIC" $i off &>/dev/null
@@ -75,7 +75,7 @@ add_interface_bond0() {
ip link set dev "$BNIC" arp off multicast off allmulticast off promisc on
# Bring the slave interface up
if [[ $verbose != true ]]; then
if [[ $verbose == true ]]; then
nmcli con up "bond0-slave-$BNIC"
else
nmcli con up "bond0-slave-$BNIC" &>/dev/null