Suppress error message from /sbin/ip

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6088 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-04-23 19:12:51 +00:00
parent 465570a673
commit f10c7242f1

View File

@ -802,7 +802,7 @@ interface_is_usable() # $1 = interface
#
find_interface_addresses() # $1 = interface
{
ip -f inet addr show $1 | grep inet\ | sed 's/\s*inet //;s/\/.*//;s/ peer.*//'
ip -f inet addr show $1 2> /dev/null | grep inet\ | sed 's/\s*inet //;s/\/.*//;s/ peer.*//'
}
#