From 146d66f0aa8cca6780ab3ac02fbbb981f64f1e56 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Mon, 19 Mar 2012 09:52:55 -0700 Subject: [PATCH] Don't complain about SHOREWALL_INIT_SCRIPT Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Config.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Config.pm b/Shorewall/Perl/Shorewall/Config.pm index 6571397ab..a258d8951 100644 --- a/Shorewall/Perl/Shorewall/Config.pm +++ b/Shorewall/Perl/Shorewall/Config.pm @@ -3487,8 +3487,10 @@ sub get_params() { } for ( keys %params ) { - fatal_error "The variable name $_ is reserved and may not be set in the params file" - if /^SW_/ || /^SHOREWALL_/ || ( exists $config{$_} && ! exists $ENV{$_} ) || exists $reserved{$_}; + unless ( $_ eq 'SHOREWALL_INIT_SCRIPT' ) { + fatal_error "The variable name $_ is reserved and may not be set in the params file" + if /^SW_/ || /^SHOREWALL_/ || ( exists $config{$_} && ! exists $ENV{$_} ) || exists $reserved{$_}; + } } if ( $debug ) {