mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-15 10:51:02 +01:00
Remove another instance of 'ip ... ls'
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6939 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
25d773762d
commit
9c2e98b57e
@ -33,7 +33,7 @@
|
||||
#
|
||||
|
||||
interface_is_up() {
|
||||
[ -n "$(ip link ls dev $1 2> /dev/null | grep -e '[<,]UP[,>]')" ]
|
||||
[ -n "$(ip link list dev $1 2> /dev/null | grep -e '[<,]UP[,>]')" ]
|
||||
}
|
||||
|
||||
case $# in
|
||||
|
Loading…
Reference in New Issue
Block a user