Cleanup and simplify boot process messages

- Remove indentation of module loading and device node creation
- Clarify that we load kernel modules
- Clarify that we load Finit plugins
- Remove cls()
- Remove verbose condition for echo()
- Make banner a separate function with optional distribution banner
- Add a few neat ANSI escape sequences for cls(), clreol(), delline(), etc.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2013-05-21 12:52:06 +02:00
1 parent 7e9ac7ba67
commit 5ba7bc1fdf
5 files changed
+28 -28

No files matched your search

+8 -5
View File
@@ -141,10 +141,11 @@ static int run_loop(void)
static void banner(void)
{
delline();
#ifdef BANNER
echo(BANNER);
#else
echo("finit " VERSION " (built " __DATE__ " " __TIME__ " by " WHOAMI ")");
echo("Finit version " VERSION " (" WHOAMI ") " __DATE__ " " __TIME__);
#endif
}
@@ -153,6 +154,11 @@ int main(int argc, char* argv[])
if (getpid() != 1)
return client(argc, argv);
/*
* Hello world.
*/
banner();
/*
* Initial setup of signals, ignore all until we're up.
*/
@@ -177,9 +183,6 @@ int main(int argc, char* argv[])
*/
parse_kernel_cmdline();
cls();
banner();
/*
* Populate /dev and prepare for runtime events from kernel.
*/
@@ -199,7 +202,7 @@ int main(int argc, char* argv[])
* all services, or service plugins won't have anything to
* hook on to.
*/
print_desc("", "Loading plugins");
print_desc("", "Loading Finit plugins");
print_result(plugin_load_all(PLUGIN_PATH));
/*