diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-01-06 09:58:21 -0500 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-01-06 09:58:21 -0500 | 
| commit | 3b14d86eed3c042db718c7e006ca5299f473c88e (patch) | |
| tree | 4efde6b2d77f5229ace3375da3471b0db1daa695 /lib/command.c | |
| parent | 0b0038b8bcf84beda44fb69a60b2620b0387d8e8 (diff) | |
| parent | 7d53a49360ddceb16db34bc8a84039cb2ecab22c (diff) | |
Merge remote-tracking branch 'origin/stable/2.0'
Diffstat (limited to 'lib/command.c')
| -rw-r--r-- | lib/command.c | 24 | 
1 files changed, 10 insertions, 14 deletions
diff --git a/lib/command.c b/lib/command.c index ca0d0c001b..039722ae6b 100644 --- a/lib/command.c +++ b/lib/command.c @@ -85,12 +85,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; @@ -159,9 +154,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);  } @@ -1213,11 +1208,12 @@ DEFUN (show_version,         SHOW_STR         "Displays zebra version\n")  { -  vty_out (vty, "Quagga %s (%s).%s", QUAGGA_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).%s", FRR_FULL_NAME, FRR_VERSION, +	   host.name ? host.name : "", +	   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;  } @@ -2300,7 +2296,7 @@ install_default (enum node_type node)   *   * terminal = 0 -- vtysh / no logging, no config control   * terminal = 1 -- normal daemon - * terminal = -1 -- watchquagga / no logging, but minimal config control */ + * terminal = -1 -- watchfrr / no logging, but minimal config control */  void  cmd_init (int terminal)  {  | 
