Add support for user/distribution specific banner at startup.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2013-05-19 19:01:44 +02:00
parent 0231f858e9
commit ae5d4a0bb2
+10 -1
View File
@@ -73,6 +73,15 @@ static int run_loop(void)
return 0;
}
static void banner(void)
{
#ifdef BANNER
echo(BANNER);
#else
echo("finit " VERSION " (built " __DATE__ " " __TIME__ " by " WHOAMI ")");
#endif
}
int main(int UNUSED(args), char* UNUSED(argv[]))
{
/*
@@ -100,7 +109,7 @@ int main(int UNUSED(args), char* UNUSED(argv[]))
parse_kernel_cmdline();
cls();
echo("finit " VERSION " (built " __DATE__ " " __TIME__ " by " WHOAMI ")");
banner();
/*
* Populate /dev and prepare for runtime events from kernel.