forked from extern/shorewall_code
Add a few comments
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
d66c7d478e
commit
55242d1ed6
@ -208,6 +208,9 @@ our %globals;
|
||||
# From shorewall.conf file - exported to other modules.
|
||||
#
|
||||
our %config;
|
||||
#
|
||||
# Raw values from shorewall.conf - used to upgrade the config file
|
||||
#
|
||||
my %rawconfig;
|
||||
#
|
||||
# Config options and global settings that are to be copied to output script
|
||||
@ -2854,7 +2857,9 @@ sub process_shorewall_conf() {
|
||||
open_file $file;
|
||||
|
||||
first_entry "Processing $file...";
|
||||
|
||||
#
|
||||
# Don't expand shell variables
|
||||
#
|
||||
while ( read_a_line(0,0) ) {
|
||||
if ( $currentline =~ /^\s*([a-zA-Z]\w*)=(.*?)\s*$/ ) {
|
||||
my ($var, $val) = ($1, $2);
|
||||
@ -2874,7 +2879,9 @@ sub process_shorewall_conf() {
|
||||
} else {
|
||||
fatal_error "$file does not exist!";
|
||||
}
|
||||
|
||||
#
|
||||
# Now that we have the raw values stored, we expand shell variables and store the expanded values
|
||||
#
|
||||
while ( my ( $opt, $v ) = each %rawconfig ) {
|
||||
my $count = 0;
|
||||
|
||||
@ -2902,7 +2909,6 @@ sub process_shorewall_conf() {
|
||||
|
||||
$config{$opt} = $v;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user