2005-03-08 Jeroen Massar <jeroen@unfix.org>
* 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.
diff --git a/lib/command.h b/lib/command.h
index eba919c..1480833 100644
--- a/lib/command.h
+++ b/lib/command.h
@@ -55,6 +55,7 @@
/* Banner configuration. */
const char *motd;
+ char *motdfile;
};
/* There are some command levels which called from command node. */