mirror of
https://github.com/troglobit/finit.git
synced 2026-11-06 15:51:03 +00:00
Add support for user/distribution specific banner at startup.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
0231f858e9
commit
ae5d4a0bb2
1 file changed
+10
-1
@@ -73,6 +73,15 @@ static int run_loop(void)
|
|||||||
return 0;
|
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[]))
|
int main(int UNUSED(args), char* UNUSED(argv[]))
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
@@ -100,7 +109,7 @@ int main(int UNUSED(args), char* UNUSED(argv[]))
|
|||||||
parse_kernel_cmdline();
|
parse_kernel_cmdline();
|
||||||
|
|
||||||
cls();
|
cls();
|
||||||
echo("finit " VERSION " (built " __DATE__ " " __TIME__ " by " WHOAMI ")");
|
banner();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Populate /dev and prepare for runtime events from kernel.
|
* Populate /dev and prepare for runtime events from kernel.
|
||||||
|
|||||||
Reference in new issue
Block a user