iface_has_host(): Suppress find's error messages
This commit is contained in:
@ -475,7 +475,7 @@ iface_has_host()
|
|||||||
return 0
|
return 0
|
||||||
fi
|
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 egrep -qs "^HOST=[\"']?([[:alnum:]]+[[:blank:]])*$name([[:blank:]][[:alnum:]]+)*[\"']?[[:blank:]]*$" $i; then
|
||||||
if [ "$(read_iface_option "${i%/options}" TYPE)" = "vlan" ]; then
|
if [ "$(read_iface_option "${i%/options}" TYPE)" = "vlan" ]; then
|
||||||
continue
|
continue
|
||||||
|
Reference in New Issue
Block a user