Add a #define to make init extra quiet on boot.
authorErik Andersen <andersen@codepoet.org>
Tue, 7 Mar 2000 07:47:10 +0000 (07:47 -0000)
committerErik Andersen <andersen@codepoet.org>
Tue, 7 Mar 2000 07:47:10 +0000 (07:47 -0000)
 -Erik

busybox.def.h
init.c
init/init.c

index da34055eea7383fa053262d08810615c86221d43..5fc86fb17d77629c8b6fa510d447301ae25bc733 100644 (file)
 //#define BB_FEATURE_INIT_CHROOT
 #endif
 //
+#define BB_FEATURE_EXTRA_QUIET
diff --git a/init.c b/init.c
index 350ea62a8f4b405e1f06b448c6a83f1f2b0827af..8e28f076fd2ba41e4bae0e46fa193fcf12544101 100644 (file)
--- a/init.c
+++ b/init.c
@@ -843,11 +843,19 @@ extern int init_main(int argc, char **argv)
 
        /* Hello world */
 #ifndef DEBUG_INIT
-       message(LOG,
+       message(
+#if ! defined BB_FEATURE_EXTRA_QUIET
+                       CONSOLE|
+#endif
+                       LOG,
                        "init started:  BusyBox v%s (%s) multi-call binary\r\n",
                        BB_VER, BB_BT);
 #else
-       message(LOG,
+       message(
+#if ! defined BB_FEATURE_EXTRA_QUIET
+                       CONSOLE|
+#endif
+                       LOG,
                        "init(%d) started:  BusyBox v%s (%s) multi-call binary\r\n",
                        getpid(), BB_VER, BB_BT);
 #endif
index 350ea62a8f4b405e1f06b448c6a83f1f2b0827af..8e28f076fd2ba41e4bae0e46fa193fcf12544101 100644 (file)
@@ -843,11 +843,19 @@ extern int init_main(int argc, char **argv)
 
        /* Hello world */
 #ifndef DEBUG_INIT
-       message(LOG,
+       message(
+#if ! defined BB_FEATURE_EXTRA_QUIET
+                       CONSOLE|
+#endif
+                       LOG,
                        "init started:  BusyBox v%s (%s) multi-call binary\r\n",
                        BB_VER, BB_BT);
 #else
-       message(LOG,
+       message(
+#if ! defined BB_FEATURE_EXTRA_QUIET
+                       CONSOLE|
+#endif
+                       LOG,
                        "init(%d) started:  BusyBox v%s (%s) multi-call binary\r\n",
                        getpid(), BB_VER, BB_BT);
 #endif