mirror of
https://github.com/RangeNetworks/openbts.git
synced 2025-10-29 02:53:35 +00:00
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:
@@ -586,7 +586,7 @@ int alarms(int argc, char** argv, ostream& os)
|
|||||||
int version(int argc, char **argv, ostream& os)
|
int version(int argc, char **argv, ostream& os)
|
||||||
{
|
{
|
||||||
if (argc!=1) return BAD_NUM_ARGS;
|
if (argc!=1) return BAD_NUM_ARGS;
|
||||||
os << "release " VERSION " built " __DATE__ << endl;
|
os << gVersionString << endl;
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -31,6 +31,9 @@
|
|||||||
#include <TMSITable.h>
|
#include <TMSITable.h>
|
||||||
#include <URLEncode.h>
|
#include <URLEncode.h>
|
||||||
|
|
||||||
|
#define PROD_CAT "P"
|
||||||
|
|
||||||
|
const char *gVersionString = "release " VERSION " " PROD_CAT " built " __DATE__ " rev" SVN_REV " ";
|
||||||
|
|
||||||
const char* gOpenBTSWelcome =
|
const char* gOpenBTSWelcome =
|
||||||
//23456789123456789223456789323456789423456789523456789623456789723456789
|
//23456789123456789223456789323456789423456789523456789623456789723456789
|
||||||
@@ -38,7 +41,7 @@ const char* gOpenBTSWelcome =
|
|||||||
"Copyright 2008, 2009, 2010, 2011 Free Software Foundation, Inc.\n"
|
"Copyright 2008, 2009, 2010, 2011 Free Software Foundation, Inc.\n"
|
||||||
"Copyright 2010 Kestrel Signal Processing, Inc.\n"
|
"Copyright 2010 Kestrel Signal Processing, Inc.\n"
|
||||||
"Copyright 2011, 2012 Range Networks, Inc.\n"
|
"Copyright 2011, 2012 Range Networks, Inc.\n"
|
||||||
"Public Release " VERSION " formal build date " __DATE__ "\n"
|
"Release " VERSION " " PROD_CAT " formal build date " __DATE__ " rev" SVN_REV "\n"
|
||||||
"\"OpenBTS\" is a registered trademark of Range Networks, Inc.\n"
|
"\"OpenBTS\" is a registered trademark of Range Networks, Inc.\n"
|
||||||
"\nContributors:\n"
|
"\nContributors:\n"
|
||||||
" Range Networks, Inc.:\n"
|
" Range Networks, Inc.:\n"
|
||||||
|
|||||||
@@ -51,6 +51,9 @@ extern ConfigurationTable gConfig;
|
|||||||
/** The OpenBTS welcome message. */
|
/** The OpenBTS welcome message. */
|
||||||
extern const char* gOpenBTSWelcome;
|
extern const char* gOpenBTSWelcome;
|
||||||
|
|
||||||
|
/** The OpenBTS version string. */
|
||||||
|
extern const char *gVersionString;
|
||||||
|
|
||||||
/** The central parser. */
|
/** The central parser. */
|
||||||
extern CommandLine::Parser gParser;
|
extern CommandLine::Parser gParser;
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# Copyright 2008 Free Software Foundation, Inc.
|
# Copyright 2008 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# This software is distributed under the terms of the GNU Public License.
|
# This software is distributed under the terms of the GNU Public License.
|
||||||
# See the COPYING file in the main directory for details.
|
# See the COPING file in the main directory for details.
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@@ -29,7 +29,10 @@ CLI_INCLUDEDIR = $(top_srcdir)/CLI
|
|||||||
SQLITE_INCLUDEDIR = $(top_srcdir)/sqlite3
|
SQLITE_INCLUDEDIR = $(top_srcdir)/sqlite3
|
||||||
SR_INCLUDEDIR = $(top_srcdir)/SR
|
SR_INCLUDEDIR = $(top_srcdir)/SR
|
||||||
|
|
||||||
|
SVNDEV = -D'SVN_REV="$(shell svnversion -n $(top_builddir))"'
|
||||||
|
|
||||||
STD_DEFINES_AND_INCLUDES = \
|
STD_DEFINES_AND_INCLUDES = \
|
||||||
|
$(SVNDEV) \
|
||||||
-I$(COMMON_INCLUDEDIR) \
|
-I$(COMMON_INCLUDEDIR) \
|
||||||
-I$(CONTROL_INCLUDEDIR) \
|
-I$(CONTROL_INCLUDEDIR) \
|
||||||
-I$(GSM_INCLUDEDIR) \
|
-I$(GSM_INCLUDEDIR) \
|
||||||
|
|||||||
@@ -107,6 +107,9 @@ pid_t gTransceiverPid = 0;
|
|||||||
|
|
||||||
void startTransceiver()
|
void startTransceiver()
|
||||||
{
|
{
|
||||||
|
// kill any stray transceiver process
|
||||||
|
system("killall transceiver");
|
||||||
|
|
||||||
// Start the transceiver binary, if the path is defined.
|
// Start the transceiver binary, if the path is defined.
|
||||||
// If the path is not defined, the transceiver must be started by some other process.
|
// If the path is not defined, the transceiver must be started by some other process.
|
||||||
char TRXnumARFCN[4];
|
char TRXnumARFCN[4];
|
||||||
@@ -132,6 +135,17 @@ void startTransceiver()
|
|||||||
|
|
||||||
int main(int argc, char *argv[])
|
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);
|
int sock = socket(AF_UNIX,SOCK_DGRAM,0);
|
||||||
if (sock<0) {
|
if (sock<0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user