shell_startup.c 481 B

12345678910111213141516171819202122
  1. /*
  2. * shell_startup.c
  3. */
  4. #include "private.h"
  5. #include <assert.h>
  6. /*----------------------------------------------------------- */
  7. bool_t clish_shell_startup(clish_shell_t * this)
  8. {
  9. const char *banner;
  10. assert(this->startup);
  11. banner = clish_command__get_detail(this->startup);
  12. if (NULL != banner) {
  13. tinyrl_printf(this->tinyrl, "%s\n", banner);
  14. }
  15. return clish_shell_execute(this, this->startup, NULL);
  16. }
  17. /*----------------------------------------------------------- */