[IS_AUTOIF] Add support for /etc/network/interface.d
This commit is contained in:
parent
6f9607bc0e
commit
75f8a55e9b
|
@ -4,6 +4,7 @@ and this project **does not adhere to [Semantic Versioning](http://semver.org/sp
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
* IS_AUTOIF: add support for /etc/network/interfaces.d
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
|
|
@ -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" " ")
|
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
|
fi
|
||||||
for interface in $interfaces; do
|
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"
|
failed "IS_AUTOIF" "Network interface \`${interface}' is not set to auto"
|
||||||
test "${VERBOSE}" = 1 || break
|
test "${VERBOSE}" = 1 || break
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue