From 9e039e30e5d01886c9fa61ead51fab8f97b05e26 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Tue, 2 Sep 2014 08:11:33 -0700 Subject: [PATCH] Issue warning message when /etc/iproute2/rt_tables is not writeable Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Providers.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Providers.pm b/Shorewall/Perl/Shorewall/Providers.pm index 7bfa883d0..580484966 100644 --- a/Shorewall/Perl/Shorewall/Providers.pm +++ b/Shorewall/Perl/Shorewall/Providers.pm @@ -1293,9 +1293,11 @@ sub start_providers() { emit_unindented "$providers{$_}{number}\t$_" unless $providers{$_}{pseudo}; } - emit_unindented "EOF\n"; + emit_unindented 'EOF'; - emit "fi\n"; + emit( 'else', + ' error_message "WARNING: /etc/iproute2/rt_tables is missing or is not writeable"', + "fi\n" ); } emit ( '#',