Setup Script - Bond Ubuntu testing

This commit is contained in:
Mike Reeves
2018-04-10 11:32:34 -04:00
parent 5edee5f1c2
commit 2127df1eab

View File

@@ -143,13 +143,14 @@ create_bond() {
modprobe bonding modprobe bonding
# Backup and create a new interface file # Backup and create a new interface file
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)
echo $MNIC
local MINT=$(awk '/auto $MNIC/,/^$/' /etc/network/interfaces) local MINT=$(awk '/auto $MNIC/,/^$/' /etc/network/interfaces)
echo $MINT
# Let's set up the new interface file # Let's set up the new interface file
echo $LBACK > /etc/network/interfaces echo $LBACK > /tmp/interfaces
echo $MINT >> /etc/network/interfaces echo $MINT >> /tmp/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