mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-11 03:32:53 +01:00
Setup Script - Bond Ubuntu testing
This commit is contained in:
@@ -145,13 +145,13 @@ create_bond() {
|
|||||||
cp /etc/network/interfaces /etc/network/interfaces.sosetup
|
cp /etc/network/interfaces /etc/network/interfaces.sosetup
|
||||||
|
|
||||||
local LBACK=$(awk '/auto lo/,/^$/' /etc/network/interfaces)
|
local LBACK=$(awk '/auto lo/,/^$/' /etc/network/interfaces)
|
||||||
local MINT=$(awk '/auto $MNIC/,/^$/' /etc/network/interfaces)
|
local MINT=$(awk "/auto $MNIC/,/^$/" /etc/network/interfaces)
|
||||||
|
|
||||||
# Let's set up the new interface file
|
# Let's set up the new interface file
|
||||||
echo $LBACK > /tmp/interfaces
|
echo $LBACK > /tmp/interfaces
|
||||||
echo $MINT >> /tmp/interfaces
|
echo $MINT >> /tmp/interfaces
|
||||||
cp /tmp/interfaces /etc/network/interfaces
|
cp /tmp/interfaces /etc/network/interfaces
|
||||||
|
|
||||||
# Create a for loop here
|
# Create a for loop here
|
||||||
for BNIC in ${BNICS[@]}; do
|
for BNIC in ${BNICS[@]}; do
|
||||||
echo "auto $BNIC" >> /etc/network/interfaces
|
echo "auto $BNIC" >> /etc/network/interfaces
|
||||||
|
|||||||
Reference in New Issue
Block a user