More quoting changes

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5713 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-03-27 02:52:46 +00:00
parent 3723af9f32
commit 7b79a98fcf

View File

@ -113,8 +113,7 @@ sub generate_script_1 {
'. /usr/share/shorewall/lib.base' ); '. /usr/share/shorewall/lib.base' );
} }
emit 'TEMPFILE='; emit "TEMPFILE=\n";
emit '';
for my $exit qw/init start tcclear started stop stopped/ { for my $exit qw/init start tcclear started stop stopped/ {
emit "run_${exit}_exit() {"; emit "run_${exit}_exit() {";
@ -125,8 +124,9 @@ sub generate_script_1 {
emit "}\n"; emit "}\n";
} }
emit 'initialize()'; emitj ( 'initialize()',
emit '{'; '{'
);
push_indent; push_indent;
@ -167,7 +167,7 @@ sub generate_script_1 {
"[ -x \"$config{IPTABLES}\" ] || startup_error \"IPTABLES=$config{IPTABLES} does not exist or is not executable\"" ); "[ -x \"$config{IPTABLES}\" ] || startup_error \"IPTABLES=$config{IPTABLES} does not exist or is not executable\"" );
} else { } else {
emitj( '[ -z "$IPTABLES" ] && IPTABLES=$(mywhich iptables 2> /dev/null)', emitj( '[ -z "$IPTABLES" ] && IPTABLES=$(mywhich iptables 2> /dev/null)',
'' '',
'[ -n "$IPTABLES" -a -x "$IPTABLES" ] || startup_error "Can\'t find iptables executable"' ); '[ -n "$IPTABLES" -a -x "$IPTABLES" ] || startup_error "Can\'t find iptables executable"' );
} }