mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 18:22:47 +01:00
[fix] Correct logic for verbose flag
This commit is contained in:
@@ -48,7 +48,7 @@ add_interface_bond0() {
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
for i in rx tx sg tso ufo gso gro lro; do
|
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
|
ethtool -K "$BNIC" $i off
|
||||||
else
|
else
|
||||||
ethtool -K "$BNIC" $i off &>/dev/null
|
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
|
ip link set dev "$BNIC" arp off multicast off allmulticast off promisc on
|
||||||
|
|
||||||
# Bring the slave interface up
|
# Bring the slave interface up
|
||||||
if [[ $verbose != true ]]; then
|
if [[ $verbose == true ]]; then
|
||||||
nmcli con up "bond0-slave-$BNIC"
|
nmcli con up "bond0-slave-$BNIC"
|
||||||
else
|
else
|
||||||
nmcli con up "bond0-slave-$BNIC" &>/dev/null
|
nmcli con up "bond0-slave-$BNIC" &>/dev/null
|
||||||
|
|||||||
Reference in New Issue
Block a user