mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-15 19:01:19 +01:00
Fix minor bug in tcdevices device detection
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3936 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
187f03d094
commit
205805536d
@ -1678,8 +1678,9 @@ setup_traffic_shaping()
|
|||||||
save_command ${dev}_exists=Yes
|
save_command ${dev}_exists=Yes
|
||||||
save_command qt tc qdisc del dev $device root
|
save_command qt tc qdisc del dev $device root
|
||||||
save_command qt tc qdisc del dev $device ingress
|
save_command qt tc qdisc del dev $device ingress
|
||||||
else
|
elif ! qt ip link ls dev $device; then
|
||||||
qt ip link ls dev $device || return 1
|
error_message "WARNING: Device $device not found -- traffic-shaping configuration skipped"
|
||||||
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
defmark=$(get_defmark_for_dev $device)
|
defmark=$(get_defmark_for_dev $device)
|
||||||
|
Loading…
Reference in New Issue
Block a user