mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-16 11:20:53 +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' );
|
||||
}
|
||||
|
||||
emit 'TEMPFILE=';
|
||||
emit '';
|
||||
emit "TEMPFILE=\n";
|
||||
|
||||
for my $exit qw/init start tcclear started stop stopped/ {
|
||||
emit "run_${exit}_exit() {";
|
||||
@ -125,8 +124,9 @@ sub generate_script_1 {
|
||||
emit "}\n";
|
||||
}
|
||||
|
||||
emit 'initialize()';
|
||||
emit '{';
|
||||
emitj ( 'initialize()',
|
||||
'{'
|
||||
);
|
||||
|
||||
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\"" );
|
||||
} else {
|
||||
emitj( '[ -z "$IPTABLES" ] && IPTABLES=$(mywhich iptables 2> /dev/null)',
|
||||
''
|
||||
'',
|
||||
'[ -n "$IPTABLES" -a -x "$IPTABLES" ] || startup_error "Can\'t find iptables executable"' );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user