[evocheck] Add /etc/network/interfaces.d support

This commit is contained in:
William Hirigoyen (Evolix) 2022-08-05 09:26:01 +02:00
parent f78e60d72a
commit 0748a090c3

View file

@ -582,7 +582,7 @@ check_autoif() {
interfaces=$(/sbin/ifconfig -s | tail -n +2 | grep -E -v "^(lo|vnet|docker|veth|tun|tap|macvtap|vrrp)" | cut -d " " -f 1 |tr "\n" " ")
fi
for interface in $interfaces; do
if ! grep -q "^auto $interface" /etc/network/interfaces; then
if ! grep -Rq "^auto $interface" /etc/network/interfaces*; then
failed "IS_AUTOIF" "Network interface \`${interface}' is not set to auto"
test "${VERBOSE}" = 1 || break
fi