First half of r4299 in private:

adds printing deeper version information.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4509 19bc5d8c-e614-43d4-8b26-e1612bc8e597
This commit is contained in:
Kurtis Heimerl
2012-11-23 08:33:34 +00:00
parent 768815e07f
commit e452aa7ff3
5 changed files with 26 additions and 3 deletions

View File

@@ -107,6 +107,9 @@ pid_t gTransceiverPid = 0;
void startTransceiver()
{
// kill any stray transceiver process
system("killall transceiver");
// Start the transceiver binary, if the path is defined.
// If the path is not defined, the transceiver must be started by some other process.
char TRXnumARFCN[4];
@@ -132,6 +135,17 @@ void startTransceiver()
int main(int argc, char *argv[])
{
// TODO: Properly parse and handle any arguments
if (argc > 1) {
for (int argi = 0; argi < argc; argi++) {
if (!strcmp(argv[argi], "--version") ||
!strcmp(argv[argi], "-v")) {
cout << gVersionString << endl;
}
}
return 0;
}
int sock = socket(AF_UNIX,SOCK_DGRAM,0);
if (sock<0) {