forked from evolix/evocheck
whitespaces
This commit is contained in:
parent
8f46b6c811
commit
92754deef0
|
@ -622,9 +622,9 @@ if is_debian; then
|
||||||
# Verify if all if are in auto
|
# Verify if all if are in auto
|
||||||
if [ "$IS_AUTOIF" = 1 ]; then
|
if [ "$IS_AUTOIF" = 1 ]; then
|
||||||
if is_debian_stretch; then
|
if is_debian_stretch; then
|
||||||
interfaces=$(/sbin/ip address show up | grep "^[0-9]*:" | grep -E -v "(lo|vnet|docker|veth|tun|tap|macvtap)" | cut -d " " -f 2 |tr -d : |cut -d@ -f1 |tr "\n" " ")
|
interfaces=$(/sbin/ip address show up | grep "^[0-9]*:" | grep -E -v "(lo|vnet|docker|veth|tun|tap|macvtap)" | cut -d " " -f 2 | tr -d : | cut -d@ -f1 | tr "\n" " ")
|
||||||
else
|
else
|
||||||
interfaces=$(/sbin/ifconfig -s |tail -n +2 |grep -E -v "^(lo|vnet|docker|veth|tun|tap|macvtap)" |cut -d " " -f 1 |tr "\n" " ")
|
interfaces=$(/sbin/ifconfig -s | tail -n +2 | grep -E -v "^(lo|vnet|docker|veth|tun|tap|macvtap)" | cut -d " " -f 1 |tr "\n" " ")
|
||||||
fi
|
fi
|
||||||
for interface in $interfaces; do
|
for interface in $interfaces; do
|
||||||
if ! grep -q "^auto $interface" /etc/network/interfaces; then
|
if ! grep -q "^auto $interface" /etc/network/interfaces; then
|
||||||
|
|
Loading…
Reference in a new issue