mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-15 12:14:32 +01:00
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:
parent
465570a673
commit
f10c7242f1
@ -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.*//'
|
||||
}
|
||||
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user