forked from extern/shorewall_code
Rename AUTO_COMMENT to AUTOCOMMENT
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
833e54c9c3
commit
62d6d2558e
@ -227,6 +227,10 @@ our %globals;
|
||||
#
|
||||
our %config;
|
||||
#
|
||||
# Entries in shorewall.conf that have been renamed
|
||||
#
|
||||
my %renamed = ( AUTO_COMMENT => 'AUTOCOMMENT' );
|
||||
#
|
||||
# Config options and global settings that are to be copied to output script
|
||||
#
|
||||
my @propagateconfig = qw/ DISABLE_IPV6 MODULESDIR MODULE_SUFFIX LOAD_HELPERS_ONLY SUBSYSLOCK LOG_VERBOSITY/;
|
||||
@ -630,7 +634,7 @@ sub initialize( $;$ ) {
|
||||
DELETE_THEN_ADD => undef,
|
||||
MULTICAST => undef,
|
||||
DONT_LOAD => '',
|
||||
AUTO_COMMENT => undef ,
|
||||
AUTOCOMMENT => undef ,
|
||||
MANGLE_ENABLED => undef ,
|
||||
RFC1918_STRICT => undef ,
|
||||
NULL_ROUTE_RFC1918 => undef ,
|
||||
@ -1694,6 +1698,7 @@ sub evaluate_expression( $$$ ) {
|
||||
$val = ( exists $ENV{$var} ? $ENV{$var} :
|
||||
exists $params{$var} ? $params{$var} :
|
||||
exists $config{$var} ? $config{$var} :
|
||||
exists $renamed{$var} ? $config{$renamed{$var}} :
|
||||
exists $capdesc{$var} ? have_capability( $var ) : 0 );
|
||||
$val = 0 unless defined $val;
|
||||
$val = "'$val'" unless $val =~ /^-?\d+$/;
|
||||
@ -3686,7 +3691,14 @@ sub process_shorewall_conf( $$ ) {
|
||||
if ( $currentline =~ /^\s*([a-zA-Z]\w*)=(.*?)\s*$/ ) {
|
||||
my ($var, $val) = ($1, $2);
|
||||
|
||||
warning_message "Unknown configuration option ($var) ignored", next unless exists $config{$var};
|
||||
unless ( exists $config{$var} ) {
|
||||
if ( exists $renamed{$var} ) {
|
||||
$var = $renamed{$var};
|
||||
} else {
|
||||
warning_message "Unknown configuration option ($var) ignored";
|
||||
next ;
|
||||
}
|
||||
}
|
||||
|
||||
$config{$var} = ( $val =~ /\"([^\"]*)\"$/ ? $1 : $val );
|
||||
|
||||
|
@ -114,7 +114,9 @@ ADD_SNAT_ALIASES=No
|
||||
|
||||
ADMINISABSENTMINDED=Yes
|
||||
|
||||
AUTO_COMMENT=Yes
|
||||
AUTOCOMMENT=Yes
|
||||
|
||||
AUTOHELPERS=Yes
|
||||
|
||||
AUTOMAKE=No
|
||||
|
||||
|
@ -125,7 +125,8 @@ ADD_SNAT_ALIASES=No
|
||||
|
||||
ADMINISABSENTMINDED=Yes
|
||||
|
||||
AUTO_COMMENT=Yes
|
||||
AUTOCOMMENT=Yes
|
||||
|
||||
|
||||
AUTOMAKE=No
|
||||
|
||||
|
@ -123,7 +123,8 @@ ADD_SNAT_ALIASES=No
|
||||
|
||||
ADMINISABSENTMINDED=Yes
|
||||
|
||||
AUTO_COMMENT=Yes
|
||||
AUTOCOMMENT=Yes
|
||||
|
||||
|
||||
AUTOMAKE=No
|
||||
|
||||
|
@ -126,7 +126,8 @@ ADD_SNAT_ALIASES=No
|
||||
|
||||
ADMINISABSENTMINDED=Yes
|
||||
|
||||
AUTO_COMMENT=Yes
|
||||
AUTOCOMMENT=Yes
|
||||
|
||||
|
||||
AUTOMAKE=No
|
||||
|
||||
|
@ -114,7 +114,8 @@ ADD_SNAT_ALIASES=No
|
||||
|
||||
ADMINISABSENTMINDED=Yes
|
||||
|
||||
AUTO_COMMENT=Yes
|
||||
AUTOCOMMENT=Yes
|
||||
|
||||
|
||||
AUTOMAKE=No
|
||||
|
||||
|
@ -283,14 +283,14 @@
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><emphasis role="bold">AUTO_COMMENT=</emphasis>[<emphasis
|
||||
<term><emphasis role="bold">AUTOCOMMENT=</emphasis>[<emphasis
|
||||
role="bold">Yes</emphasis>|<emphasis role="bold">No</emphasis>]</term>
|
||||
|
||||
<listitem>
|
||||
<para>If set, if there is not a current comment when a macro is
|
||||
invoked, the behavior is as if the first line of the macro file was
|
||||
"COMMENT <macro name>". The AUTO_COMMENT option has a default
|
||||
value of 'Yes'.</para>
|
||||
<para>Formerly named AUTO_COMMENT. If set, if there is not a current
|
||||
comment when a macro is invoked, the behavior is as if the first
|
||||
line of the macro file was "COMMENT <macro name>". The
|
||||
AUTO_COMMENT option has a default value of 'Yes'.</para>
|
||||
|
||||
<para>The setting of the AUTOMAKE option is ignored if the
|
||||
<command>start</command> or <command>restart</command> command
|
||||
|
@ -109,7 +109,8 @@ ACCOUNTING_TABLE=filter
|
||||
|
||||
ADMINISABSENTMINDED=Yes
|
||||
|
||||
AUTO_COMMENT=Yes
|
||||
AUTOCOMMENT=Yes
|
||||
|
||||
|
||||
AUTOMAKE=No
|
||||
|
||||
|
@ -109,7 +109,8 @@ ACCOUNTING_TABLE=filter
|
||||
|
||||
ADMINISABSENTMINDED=Yes
|
||||
|
||||
AUTO_COMMENT=Yes
|
||||
AUTOCOMMENT=Yes
|
||||
|
||||
|
||||
AUTOMAKE=No
|
||||
|
||||
|
@ -109,7 +109,8 @@ ACCOUNTING_TABLE=filter
|
||||
|
||||
ADMINISABSENTMINDED=Yes
|
||||
|
||||
AUTO_COMMENT=Yes
|
||||
AUTOCOMMENT=Yes
|
||||
|
||||
|
||||
AUTOMAKE=No
|
||||
|
||||
|
@ -109,7 +109,8 @@ ACCOUNTING_TABLE=filter
|
||||
|
||||
ADMINISABSENTMINDED=Yes
|
||||
|
||||
AUTO_COMMENT=Yes
|
||||
AUTOCOMMENT=Yes
|
||||
|
||||
|
||||
AUTOMAKE=No
|
||||
|
||||
|
@ -217,14 +217,17 @@
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><emphasis role="bold">AUTO_COMMENT=</emphasis>[<emphasis
|
||||
<term><emphasis role="bold">AUTOCOMMENT=</emphasis>[<emphasis
|
||||
role="bold">Yes</emphasis>|<emphasis role="bold">No</emphasis>]</term>
|
||||
|
||||
<listitem>
|
||||
<para>If set, if there is not a current comment when a macro is
|
||||
invoked, the behavior is as if the first line of the macro file was
|
||||
"COMMENT <macro name>". The AUTO_COMMENT option has a default
|
||||
value of 'Yes'.</para>
|
||||
<para>Formerly named AUTO_COMMENT. If set, if there is not a current
|
||||
comment when a macro is invoked, the behavior is as if the first
|
||||
line of the macro file was "COMMENT <macro name>". The
|
||||
AUTO_COMMENT option has a default value of 'Yes'.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user