iface_has_host(): Suppress find's error messages

This commit is contained in:
Mikhail Efremov 2016-03-17 18:44:17 +03:00
parent 33a627dff7
commit b2a943819d

View File

@ -475,7 +475,7 @@ iface_has_host()
return 0
fi
for i in $(find "$ifacesdir" -maxdepth 2 -mindepth 2 -name options); do
for i in $(find "$ifacesdir" -maxdepth 2 -mindepth 2 -name options 2>/dev/null); do
if egrep -qs "^HOST=[\"']?([[:alnum:]]+[[:blank:]])*$name([[:blank:]][[:alnum:]]+)*[\"']?[[:blank:]]*$" $i; then
if [ "$(read_iface_option "${i%/options}" TYPE)" = "vlan" ]; then
continue