Don't print phoney progress message

- The 'Setting up Traffic Shaping' progress message was being issued when
  traffic shaping was not enabled.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-07-01 08:27:07 -07:00
parent 6ddaa0190e
commit 09c00cf425

View File

@ -2031,6 +2031,7 @@ sub process_tc() {
# Call the setup_${dev}_tc functions
#
sub setup_traffic_shaping() {
if ( @tcdevices ) {
save_progress_message q("Setting up Traffic Control...");
for my $device ( @tcdevices ) {
@ -2040,6 +2041,7 @@ sub setup_traffic_shaping() {
emit "setup_${dev}_tc";
}
}
}
#
# Process a record in the secmarks file
@ -2157,7 +2159,7 @@ sub setup_tc() {
append_file $globals{TC_SCRIPT};
} else {
process_tcpri if $config{TC_ENABLED} eq 'Simple';
setup_traffic_shaping unless $config{TC_ENABLED} eq 'Shared';
setup_traffic_shaping if @tcdevices && $config{TC_ENABLED} ne 'Shared';
}
if ( $config{TC_ENABLED} ) {