diff options
Diffstat (limited to 'xpp/dahdi_genconf')
-rwxr-xr-x | xpp/dahdi_genconf | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/xpp/dahdi_genconf b/xpp/dahdi_genconf index a0e4e20..0b2b321 100755 --- a/xpp/dahdi_genconf +++ b/xpp/dahdi_genconf @@ -749,7 +749,13 @@ sub set_defaults { } sub parse_args { - push(@ARGV, 'unicall') if $pri_connection_type eq 'R2'; + if (not @ARGV) { + # No files given. Use the defaults. + push(@ARGV, 'unicall') if $pri_connection_type eq 'R2'; + return; + } + + @default_files = (); for my $file (@ARGV) { die "$0: Unknown file '$file'" unless defined $files{$file}; push @default_files, $file; |