1
.TH "ASTRIBANK_IS_STARTING" "8" "16 August 2009" "" ""
4
astribank_is_starting \- Mark / check is a Xorcom Astribank (xpp) is starting
6
.B astribank_is_starting [-d] [-v] [-t \fItimeout\fB] <-a|-r|-w>
8
.B astribank_is_starting [-d] [-v]
10
.B astribank_is_starting -h
13
.B astribank_is_starting
14
is an internal tool used by various xpp scripts to mark that there may
15
be an Astribank device currently initializing, and to check for that mark.
17
Technically the mark is a SysV semaphore.
23
Set the mark. Should return 0 unless there's an error.
29
Reset the mark. Should return 0 unless there's an error.
35
Set the timeout value for the \fB-w\fR option. Default is 60 seconds.
41
Wait for mark to be reset. Should return 0 unless there's an error.
44
Without -a or -r: return 0 if the mark has been set, or a non-zero value
49
Print debug information to stderr.
59
Displays usage message.
65
If set, the astribank should appear there with the ID 11211168 (0xAB11A0).
66
Naturally the ID (or rather, the usage of a semaphore in the first place)
67
is an implementation detail that may change.
71
.B astribank_is_starting
72
is used to mark the fact that an Astribank may be currently reenumerating
73
(technically: distonnecting and connecting as a new USB device) after
74
loading the firmware. Thus the script that loads the firmware
75
(/usr/share/dahdi/xpp_fxloader) uses this utility to set the mark.
77
The mark is reset by /usr/share/dahdi/waitfor_xpds , which is typically
78
run by the DAHDI init script and waits for all Astribanks to finish
81
Q: Why do you use a semaphore?
83
A: because, unlike the filesystem, it is writable at any given time.
86
Option ordering matter. The \fB-v\fR and \fB-d\fR options should preceed
87
the actions (\fB-a\fR, \fB-r\fR and \fB-w\fR).
88
The \fB-t\fItimeout\fR option should preceed the \fB-w\fR option.
94
This manual page was written by Tzafrir Cohen <tzafrir.cohen@xorcom.com> .
95
Permission is granted to copy, distribute and/or modify this document under
96
the terms of the GNU General Public License, Version 2 any
97
later version published by the Free Software Foundation.
99
On Debian systems, the complete text of the GNU General Public
100
License can be found in /usr/share/common-licenses/GPL.