mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-23 19:21:21 +02:00
Remove another instance of 'ip ... ls'
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6940 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
9c2e98b57e
commit
7bce2e08b3
@ -151,7 +151,7 @@ restore_dynamic_rules() {
|
|||||||
#
|
#
|
||||||
get_device_mtu1() # $1 = device
|
get_device_mtu1() # $1 = device
|
||||||
{
|
{
|
||||||
local output="$(ip link ls dev $1 2> /dev/null)" # quotes required for /bin/ash
|
local output="$(ip link list dev $1 2> /dev/null)" # quotes required for /bin/ash
|
||||||
local mtu
|
local mtu
|
||||||
|
|
||||||
if [ -n "$output" ]; then
|
if [ -n "$output" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user