diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-03-23 00:09:32 +0800 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-03-23 00:09:32 +0800 |
commit | 5a29c7fa895a14112a1ac65e541f4b87ae9dba04 (patch) | |
tree | ebe00528c9d0b992406de8c30ab2a3e99eccdd0a /openbsc/src/telnet_interface.c | |
parent | 351ec2a1784fbdb2ce688f50a9134532f3bf0723 (diff) |
automatically include program version and print it from vty and --version
Diffstat (limited to 'openbsc/src/telnet_interface.c')
-rw-r--r-- | openbsc/src/telnet_interface.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/openbsc/src/telnet_interface.c b/openbsc/src/telnet_interface.c index 805dd127d..aa119b464 100644 --- a/openbsc/src/telnet_interface.c +++ b/openbsc/src/telnet_interface.c @@ -98,21 +98,16 @@ void telnet_init(struct gsm_network *network, int port) { bsc_register_fd(&server_socket); } +extern const char *openbsc_copyright; +extern const char *openbsc_version; + static void print_welcome(int fd) { int ret; static char *msg = - "Welcome to the OpenBSC Control interface\n" - "Copyright (C) 2008-2010 Harald Welte\n" - "Contributions by Daniel Willmann, Jan Lübbe, " - "Stefan Schmidt, Holger Freyther, Andreas Eversberg\n\n" - "License GPLv2+: GNU GPL version 2 or later " - "<http://gnu.org/licenses/gpl.html>\n" - "This is free software: you are free to change " - "and redistribute it.\n" - "There is NO WARRANTY, to the extent permitted " - "by law.\nType \"help\" to get a short introduction.\n"; + "Welcome to the OpenBSC Control interface\n"; ret = write(fd, msg, strlen(msg)); + ret = write(fd, openbsc_copyright, strlen(openbsc_copyright)); } int telnet_close_client(struct bsc_fd *fd) { |