Allow the '-V' option in the CLI programs.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-05-16 14:29:36 -07:00
parent 739f3779f5
commit f6a55bbf05
2 changed files with 17 additions and 11 deletions

View File

@ -3421,8 +3421,16 @@ shorewall_cli() {
g_fast=Yes g_fast=Yes
option=${option#f} option=${option#f}
;; ;;
v*) [vV]*)
option=${option#v} case $option in
v*)
option=${option#v}
;;
*)
option=${option#V}
;;
esac
case $option in case $option in
-1*) -1*)
g_use_verbosity=-1 g_use_verbosity=-1

View File

@ -1409,18 +1409,16 @@ sub process_providers( $ ) {
} }
} }
if ( $providers || $pseudoproviders ) { my $fn = open_file 'routes';
my $fn = open_file 'routes';
if ( $fn ) { if ( $fn ) {
first_entry "$doing $fn..."; first_entry "$doing $fn...";
emit ''; emit '';
add_a_route while read_a_line( NORMAL_READ ); add_a_route while read_a_line( NORMAL_READ );
}
add_a_provider( $providers{$_}, $tcdevices ) for @providers;
} }
add_a_provider( $providers{$_}, $tcdevices ) for @providers;
emit << 'EOF';; emit << 'EOF';;
# #