From 205805536d2c09dceef17b4f9ec2e943429c7be8 Mon Sep 17 00:00:00 2001 From: teastep Date: Tue, 23 May 2006 14:57:50 +0000 Subject: [PATCH] Fix minor bug in tcdevices device detection git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3936 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall/functions | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Shorewall/functions b/Shorewall/functions index cd90af9a4..e8afb45c1 100644 --- a/Shorewall/functions +++ b/Shorewall/functions @@ -1678,8 +1678,9 @@ setup_traffic_shaping() save_command ${dev}_exists=Yes save_command qt tc qdisc del dev $device root save_command qt tc qdisc del dev $device ingress - else - qt ip link ls dev $device || return 1 + elif ! qt ip link ls dev $device; then + error_message "WARNING: Device $device not found -- traffic-shaping configuration skipped" + return 1 fi defmark=$(get_defmark_for_dev $device)