forked from extern/shorewall_code
Correct emitted code in 'setup_netfilter()'
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5684 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
381d59995b
commit
6dc1c3027f
@ -1430,9 +1430,13 @@ sub create_netfilter_load() {
|
||||
|
||||
emit_unindented '__EOF__' unless $state == CMD_STATE;
|
||||
emit '';
|
||||
|
||||
if ( $slowstart ) {
|
||||
emit ' exec 3>&-';
|
||||
emit '';
|
||||
emit 'iptables-restore < $TEMPFILE' if $slowstart;
|
||||
}
|
||||
|
||||
emit 'if [ $? != 0 ]; then';
|
||||
emit ' fatal_error "iptables-restore Failed"';
|
||||
emit "fi\n";
|
||||
|
Loading…
Reference in New Issue
Block a user