1DAHDI_WAITFOR_SPAN_ASSIGNMENTS(8) DAHDI_WAITFOR_SPAN_ASSIGNMENTS(8)
2
3
4
6 dahdi_waitfor_span_assignments - wait for DAHDI spans to get
7 (un)assigned
8
10 dahdi_span_assignments assigned
11
12 dahdi_span_assignments unassigned
13
14
16 DAHDI spans get assigned / unassigned asynchronously.
17
18 dahdi_span_assignments is a helper script that allows running commands
19 after all the spans have been assigned or unassigned.
20
21 It takes a single command: assigned or unassigned and waits (up until a
22 timeout of 5 seconds) for all the DAHDI spans in the system to do so.
23
24 Note that if the system has a span that will not get assigned automati‐
25 cally (e.g.: it's not in assigned-spans.conf), this program does not
26 know and will wait until a timeout.
27
28
30 modprobe wctdm24xxp
31 dahdi_waitfor_span_assignments assigned
32 do_something
33
34 dahdi_span_assignments add
35 dahdi_waitfor_span_assignments assigned
36 do_something_else
37
38 dahdi_span_assignments remove
39 dahdi_span_assignments unassigned
40 do_something_completely_different
41
42
44 dahdi_span_assignments(8)
45
46
48 dahdi_waitfor_span_assignments was written by Oron Peled. This manual
49 page was written by Tzafrir Cohen. Permission is granted to copy, dis‐
50 tribute and/or modify this document under the terms of the GNU General
51 Public License, Version 2 any later version published by the Free
52 Software Foundation.
53
54
55
56
57 22 Jan 2014DAHDI_WAITFOR_SPAN_ASSIGNMENTS(8)