diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-01-03 10:44:11 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-03 10:44:11 -0500 |
| commit | 9f221bd1a826f473b14393b1cf523543738c5050 (patch) | |
| tree | d107ecf8bb445132d44851c7fb7ae502e999f731 /lib/command.c | |
| parent | 524f2ba32679fce7293a0a606ece535d0bfc5716 (diff) | |
| parent | ab0181eed3d118fc46e693c68e5bbc0248c7bfe5 (diff) | |
Merge pull request #28 from opensourcerouting/dev/osr/rename-part1
rename, part1
Diffstat (limited to 'lib/command.c')
| -rw-r--r-- | lib/command.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/lib/command.c b/lib/command.c index 0b0614b806..399252777f 100644 --- a/lib/command.c +++ b/lib/command.c @@ -117,12 +117,7 @@ static struct cmd_node config_node = }; /* Default motd string. */ -static const char *default_motd = -"\r\n\ -Hello, this is " QUAGGA_PROGNAME " (version " QUAGGA_VERSION ").\r\n\ -" QUAGGA_COPYRIGHT "\r\n\ -" GIT_INFO "\r\n"; - +static const char *default_motd = FRR_DEFAULT_MOTD; static const struct facility_map { int facility; @@ -191,9 +186,9 @@ level_match(const char *s) void print_version (const char *progname) { - printf ("%s version %s\n", progname, QUAGGA_VERSION); - printf ("%s\n", QUAGGA_COPYRIGHT); - printf ("configured with:\n\t%s\n", QUAGGA_CONFIG_ARGS); + printf ("%s version %s\n", progname, FRR_VERSION); + printf ("%s\n", FRR_COPYRIGHT); + printf ("configured with:\n\t%s\n", FRR_CONFIG_ARGS); } @@ -3077,11 +3072,12 @@ DEFUN (show_version, SHOW_STR "Displays zebra version\n") { - vty_out (vty, "Quagga %s (%s).%s", QUAGGA_VERSION, host.name?host.name:"", + vty_out (vty, "%s %s (%s).%s", FRR_FULL_NAME, FRR_VERSION, + host.name ? host.name : "", VTY_NEWLINE); - vty_out (vty, "%s%s%s", QUAGGA_COPYRIGHT, GIT_INFO, VTY_NEWLINE); + vty_out (vty, "%s%s%s", FRR_COPYRIGHT, GIT_INFO, VTY_NEWLINE); vty_out (vty, "configured with:%s %s%s", VTY_NEWLINE, - QUAGGA_CONFIG_ARGS, VTY_NEWLINE); + FRR_CONFIG_ARGS, VTY_NEWLINE); return CMD_SUCCESS; } |
