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:
teastep 2006-05-23 14:57:50 +00:00
parent 187f03d094
commit 205805536d

View File

@ -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)