From 3b0c5d9a56560cfbfb1a8f5b9e6cc71025eb5490 Mon Sep 17 00:00:00 2001 From: paul Date: Tue, 8 Mar 2005 10:43:43 +0000 Subject: 2005-03-08 Jeroen Massar * vty.c: (vty_hello) display motd file, if set * command.h: add char *motdfile to struct host * command.c: (config_write_host) write out motdfile config (banner_motd_file_cmd) new command, allow motd to be read from file. (no_banner_motd_cmd) free motdfile string, if needs be. (cmd_init) init (struct host).motdfile. Add new motd file commands. --- lib/command.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/command.h') diff --git a/lib/command.h b/lib/command.h index eba919cb..14808330 100644 --- a/lib/command.h +++ b/lib/command.h @@ -55,6 +55,7 @@ struct host /* Banner configuration. */ const char *motd; + char *motdfile; }; /* There are some command levels which called from command node. */ -- cgit v1.2.1