| ASTRIBANK_IS_STARTING(8) | ASTRIBANK_IS_STARTING(8) |
NAME¶
astribank_is_starting - Mark / check is a Xorcom Astribank (xpp) is startingSYNOPSIS¶
astribank_is_starting [-d] [-v] [-t timeout] <-a|-r|-w>DESCRIPTION¶
astribank_is_starting is an internal tool used by various xpp scripts to mark that there may be an Astribank device currently initializing, and to check for that mark.OPTIONS¶
-aAdd. Set the mark. Should return 0
unless there's an error.
Remove. Reset the mark. Should return 0
unless there's an error.
Timeout. Set the timeout value for the
-w option. Default is 60 seconds.
Wait. Wait for mark to be reset. Should
return 0 unless there's an error.
Print debug information to stderr.
Verbose execution.
Displays usage message.
FILES¶
/proc/sysvipc/semIf set, the astribank should appear there with
the ID 11211168 (0xAB11A0). Naturally the ID (or rather, the usage of a
semaphore in the first place) is an implementation detail that may
change.
NOTES¶
astribank_is_starting is used to mark the fact that an Astribank may be currently reenumerating (technically: distonnecting and connecting as a new USB device) after loading the firmware. Thus the script that loads the firmware (/usr/share/dahdi/xpp_fxloader) uses this utility to set the mark.BUGS¶
Option ordering matter. The -v and -d options should preceed the actions ( -a, -r and -w). The -ttimeout option should preceed the -w option.SEE ALSO¶
semctl(3)AUTHOR¶
This manual page was written by Tzafrir Cohen <tzafrir.cohen@xorcom.com> . Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation.| 16 August 2009 |