mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-20 09:47:51 +02: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() {
|
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
|
case $# in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user