Don't add route rules when interface is down

This commit is contained in:
Tom Eastep 2009-11-16 10:58:38 -08:00
parent dd543a2934
commit 016537f631

View File

@ -601,7 +601,7 @@ sub add_an_rtrule( ) {
if ( $optional ) {
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;
}