behavour, but is often what you want in an embedded system where
the console is only accessed during development or for maintenance.
+config FEATURE_INIT_SYSLOG
+ bool "Enable init to write to syslog"
+ default n
+ depends on INIT
+
config FEATURE_EXTRA_QUIET
bool "Be _extra_ quiet on boot"
default y
#include <sys/wait.h>
#include <sys/reboot.h>
-#if ENABLE_SYSLOGD
+#if ENABLE_FEATURE_INIT_SYSLOG
# include <sys/syslog.h>
#endif
/* Static variables */
static struct init_action *init_action_list = NULL;
-#if !ENABLE_SYSLOGD
+#if !ENABLE_FEATURE_INIT_SYSLOG
static const char *log_console = VC_5;
#endif
#if !ENABLE_DEBUG_INIT
__attribute__ ((format(printf, 2, 3)));
static void message(int device, const char *fmt, ...)
{
-#if !ENABLE_SYSLOGD
+#if !ENABLE_FEATURE_INIT_SYSLOG
static int log_fd = -1;
#endif
msg[sizeof(msg) - 2] = '\0';
l = strlen(msg);
-#if ENABLE_SYSLOGD
+#if ENABLE_FEATURE_INIT_SYSLOG
/* Log the message to syslogd */
if (device & L_LOG) {
/* don't out "\r" */
* if TERM is set to linux (the default) */
if (!s || strcmp(s, "linux") == 0)
putenv((char*)"TERM=vt102");
-#if !ENABLE_SYSLOGD
+#if !ENABLE_FEATURE_INIT_SYSLOG
log_console = NULL;
#endif
} else if (!s)