mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-16 19:30:44 +01:00
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:
parent
3723af9f32
commit
7b79a98fcf
@ -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"' );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user