iface_has_host(): Suppress find's error messages
This commit is contained in:
parent
33a627dff7
commit
b2a943819d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user