summaryrefslogtreecommitdiff
path: root/xpp/utils/xpp_blink
diff options
context:
space:
mode:
Diffstat (limited to 'xpp/utils/xpp_blink')
-rwxr-xr-xxpp/utils/xpp_blink8
1 files changed, 6 insertions, 2 deletions
diff --git a/xpp/utils/xpp_blink b/xpp/utils/xpp_blink
index 1993a81..65be247 100755
--- a/xpp/utils/xpp_blink
+++ b/xpp/utils/xpp_blink
@@ -8,7 +8,8 @@
# $Id$
#
use strict;
-BEGIN { my $dir = $0; $dir =~ s:/[^/]+$::; unshift(@INC, "$dir", "$dir/zconf"); }
+use File::Basename;
+BEGIN { my $dir = dirname($0); unshift(@INC, "$dir", "$dir/zconf"); }
use Zaptel;
use Zaptel::Span;
@@ -100,15 +101,18 @@ Blink all the leds of an XPD.
=over 16
=item span Select by span number. This only work for XPD registered to zaptel.
+ will also print the zaptel channels of the span and the
+ xbus/xpd this span represents.
=item xpd Select by xbus + xpd numbers. If only xbus number is given, all the
- XPDs of the selected xbus are blinked.
+ XPDs of the selected xbus (Astribank) are blinked.
=back
=head1 EXAMPLES
$ xpp_blink bzzt span 2
+ Using XBUS-04/XPD-10 (connected via usb-0000:00:1d.7-1): channels 15 16 17 18 19 20 21 22
$ xpp_blink xpd 0 1