Don't add route rules when interface is down

This commit is contained in:
Tom Eastep 2009-11-16 11:01:37 -08:00
parent aceb834c0c
commit 991bad7371

View File

@ -589,7 +589,7 @@ sub add_an_rtrule( ) {
if ( $optional ) {
my $base = uc chain_base( $providers{$provider}{interface} );
emit ( '', "if [ -n \$${base}_IS_USABLE ]; then" );
emit ( '', qq(if [ -n "\$${base}_IS_USABLE" ]; then) );
push_indent;
}