mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-20 05:11:03 +01:00
Don't create a _weight file for an optional non-provider interface.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
a0faba2a03
commit
1957af04fd
@ -858,9 +858,12 @@ CEOF
|
|||||||
|
|
||||||
pop_indent;
|
pop_indent;
|
||||||
|
|
||||||
emit( 'else' );
|
unless ( $pseudo ) {
|
||||||
emit( qq( echo $weight > \${VARDIR}/${physical}_weight) );
|
emit( 'else' );
|
||||||
emit_started_message( ' ', '', $pseudo, $table, $number );
|
emit( qq( echo $weight > \${VARDIR}/${physical}_weight) );
|
||||||
|
emit_started_message( ' ', '', $pseudo, $table, $number );
|
||||||
|
}
|
||||||
|
|
||||||
emit "fi\n";
|
emit "fi\n";
|
||||||
} else {
|
} else {
|
||||||
emit( qq(echo 0 > \${VARDIR}/${physical}.status) );
|
emit( qq(echo 0 > \${VARDIR}/${physical}.status) );
|
||||||
|
Loading…
Reference in New Issue
Block a user