diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2008-06-19 17:34:36 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2008-06-19 17:34:36 +0000 |
commit | da10e87bd6c69c4374de470b7b286c36c823fdc2 (patch) | |
tree | 8ae3ddc2b5eff066497697c0c6ec1bc7ee6433ad /xpp/dahdi_hardware | |
parent | c1ae88873823bdc2d884f72cc2b06eab017b97b1 (diff) |
XPP tools rename: part 2.
Removed obsolete astribank_hook (not needed) and print_modes (moved to
kernel).
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4416 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'xpp/dahdi_hardware')
-rwxr-xr-x | xpp/dahdi_hardware | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/xpp/dahdi_hardware b/xpp/dahdi_hardware index 004a44b..d869f32 100755 --- a/xpp/dahdi_hardware +++ b/xpp/dahdi_hardware @@ -10,13 +10,13 @@ use strict; use File::Basename; use Getopt::Std; -BEGIN { my $dir = dirname($0); unshift(@INC, "$dir", "$dir/zconf"); } +BEGIN { my $dir = dirname($0); unshift(@INC, "$dir", "$dir/perl_modules"); } -use Zaptel; -use Zaptel::Span; -use Zaptel::Xpp; -use Zaptel::Xpp::Xbus; -use Zaptel::Hardware; +use Dahdi; +use Dahdi::Span; +use Dahdi::Xpp; +use Dahdi::Xpp::Xbus; +use Dahdi::Hardware; sub usage { die "Usage: $0 [-v][-x]\n"; @@ -26,8 +26,8 @@ our ($opt_v, $opt_x); getopts('vx') || usage; @ARGV == 0 or usage; -my $hardware = Zaptel::Hardware->scan; -my @spans = Zaptel::spans; +my $hardware = Dahdi::Hardware->scan; +my @spans = Dahdi::spans; sub show_xbus($) { my $xbus = shift or die; @@ -47,7 +47,7 @@ sub show_xbus($) { } my $master = ''; #$master = "XPP-SYNC" if $xpd->is_sync_master; - $master .= " ZAPTEL-SYNC" if defined($span) && $span->is_zaptel_sync_master; + $master .= " DAHDI-SYNC" if defined($span) && $span->is_dahdi_sync_master; printf "\t%-10s: %-8s %s %s\n", $xpd->fqn, $xpd->type, $spanstr, $master; } } @@ -59,7 +59,7 @@ sub show_disconnected(%) { my %seen = @_; my $notified_lost = 0; - foreach my $xbus (Zaptel::Xpp::xbuses('SORT_CONNECTOR')) { + foreach my $xbus (Dahdi::Xpp::xbuses('SORT_CONNECTOR')) { if(!$seen{$xbus->name}) { print "----------- XPP Spans with disconnected hardware -----------\n" unless $notified_lost++; @@ -95,11 +95,11 @@ __END__ =head1 NAME -zaptel_hardware - Shows Zaptel hardware devices. +dahdi_hardware - Shows Dahdi hardware devices. =head1 SYNOPSIS -zaptel_hardware [-v][-x] +dahdi_hardware [-v][-x] =head1 OPTIONS @@ -118,9 +118,9 @@ Show disconnected Astribank unit, if any. =head1 DESCRIPTION -Show all zaptel hardware devices. Devices are recognized according to -lists of PCI and USB IDs in Zaptel::Hardware::PCI.pm and -Zaptel::Hardware::USB.pm . For PCI it is possible to detect by +Show all dahdi hardware devices. Devices are recognized according to +lists of PCI and USB IDs in Dahdi::Hardware::PCI.pm and +Dahdi::Hardware::USB.pm . For PCI it is possible to detect by sub-vendor and sub-product ID as well. The first output column is the connector: a bus specific field that @@ -130,7 +130,7 @@ The second field shows which driver should handle the device. a "-" sign marks that the device is not yet handled by this driver. A "+" sign means that the device is handled by the driver. -For the Xorcom Astribank (and in the future: for other Zaptel devices) +For the Xorcom Astribank (and in the future: for other Dahdi devices) some further information is provided from the driver. Those extra lines always begin with spaces. |