mirror of
https://gitlab.com/shorewall/code.git
synced 2025-04-16 15:28:35 +02:00
Don't add route rules when interface is down
This commit is contained in:
parent
dd543a2934
commit
016537f631
@ -601,7 +601,7 @@ sub add_an_rtrule( ) {
|
|||||||
|
|
||||||
if ( $optional ) {
|
if ( $optional ) {
|
||||||
my $base = uc chain_base( $providers{$provider}{physical} );
|
my $base = uc chain_base( $providers{$provider}{physical} );
|
||||||
emit ( '', "if [ -n \$${base}_IS_USABLE ]; then" );
|
emit ( '', qq(if [ -n "\$${base}_IS_USABLE" ]; then) );
|
||||||
push_indent;
|
push_indent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user