From 016537f6314c88f339806ed13d0bc7a00022d5fd Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Mon, 16 Nov 2009 10:58:38 -0800 Subject: [PATCH] Don't add route rules when interface is down --- Shorewall/Perl/Shorewall/Providers.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall/Perl/Shorewall/Providers.pm b/Shorewall/Perl/Shorewall/Providers.pm index f7fccc3fa..0db05c993 100644 --- a/Shorewall/Perl/Shorewall/Providers.pm +++ b/Shorewall/Perl/Shorewall/Providers.pm @@ -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; }