mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 02:02:50 +01:00
Setup Script - Make ubuntu look at interfaces.d
This commit is contained in:
@@ -177,7 +177,7 @@ create_bond() {
|
||||
cp /etc/network/interfaces /etc/network/interfaces.sosetup
|
||||
echo "source /etc/network/interfaces.d/*" > /etc/network/interfaces
|
||||
echo "" >> /etc/network/interfaces
|
||||
|
||||
|
||||
local LBACK=$(awk '/auto lo/,/^$/' /etc/network/interfaces)
|
||||
local MINT=$(awk "/auto $MNIC/,/^$/" /etc/network/interfaces)
|
||||
|
||||
@@ -186,7 +186,7 @@ create_bond() {
|
||||
IFS=$'\n'
|
||||
for line in $LBACK
|
||||
do
|
||||
echo $line >> $TMP/interfaces
|
||||
echo $line >> /etc/network/interfaces
|
||||
done
|
||||
|
||||
cp $TMP/interfaces /etc/network/interfaces
|
||||
|
||||
Reference in New Issue
Block a user