From 142f48d0d460adeeea779a1ab4c5dda7495d6308 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Wed, 2 Nov 2011 20:10:06 +0000 Subject: dahdi_cfg: add '-S ' and '-C ' * dahdi_cfg -S : only apply changes to span . * If span is analog (no 'span=,,...' statement in system.conf), we need to set range: -C * With the and attributes in sysfs we easily configure each device on the fly. Simply run: dahdi_cfg -S -C +-1 from udev script Signed-off-by: Oron Peled Acked-by: Tzafrir Cohen git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@10306 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- doc/dahdi_cfg.8 | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'doc/dahdi_cfg.8') diff --git a/doc/dahdi_cfg.8 b/doc/dahdi_cfg.8 index 7a1fe88..5e1eaa2 100644 --- a/doc/dahdi_cfg.8 +++ b/doc/dahdi_cfg.8 @@ -4,7 +4,7 @@ dahdi_cfg \- configures DAHDI kernel modules from /etc/dahdi/system.conf .SH SYNOPSIS -.B dahdi_cfg [\-c \fICFG_FILE\fB] [\-s] [\-f] [\-t] [\-v [\-v ... ] ] +.B dahdi_cfg [\-c \fICFG_FILE\fB] [\-S\fINUM\fB [-S\fICHANS\fB]] [\-s] [\-f] [\-t] [\-v [\-v ... ] ] .B dahdi_cfg \-h @@ -26,11 +26,25 @@ Use an alternative configuration file instead of .I /etc/dahdi/system.conf .RE +.B \-C \fICHANNELS +.RS +Only apply changes to channels in the specified range. Only +applicable when \-S is in use. +.RE + .B \-s .RS Only shutdown spans. .RE +.B \-S \fISPAN +.RS +Only apply changes to span no. \fISPAN\fR. For a digital span (with +a 'span=' line in the configuration file) this will do. For an analog +span you'll have to explicitly tell dahdi_cfg the range of channels, +using \-C . +.RE + .B \-f .RS Always configure every channel, even if it appears not to have changed. -- cgit v1.2.3