Fix ifaces_have_host regexp.

This commit is contained in:
Mikhail Efremov 2014-12-25 17:09:38 +03:00
parent 609b157af8
commit 1f85767b3a

View File

@ -173,7 +173,7 @@ commit_cache()
# first iteration: host-interfaces, that one that have infants # first iteration: host-interfaces, that one that have infants
# second iteration: vlan, bridges, etc... # second iteration: vlan, bridges, etc...
local ifaces_all=($(find "$cachedir" -maxdepth 1 -mindepth 1 -type d | sort)) local ifaces_all=($(find "$cachedir" -maxdepth 1 -mindepth 1 -type d | sort))
local ifaces_have_host=($(find "$cachedir" -maxdepth 2 -mindepth 2 -type f -name "options" -exec grep -l "HOST" '{}' \+ | sed -e 's,/[^/]\+$,,' | sort)) local ifaces_have_host=($(find "$cachedir" -maxdepth 2 -mindepth 2 -type f -name "options" -exec grep -l "^HOST=" '{}' \+ | sed -e 's,/[^/]\+$,,' | sort))
local ifaces_not_infants=() local ifaces_not_infants=()
local skip= local skip=