aboutsummaryrefslogtreecommitdiff
path: root/init/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'init/init.c')
-rw-r--r--init/init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/init/init.c b/init/init.c
index d7d14a2d5..8257b7fb0 100644
--- a/init/init.c
+++ b/init/init.c
@@ -195,7 +195,7 @@ static void message(int device, const char *fmt, ...)
195 /* Log the message to syslogd */ 195 /* Log the message to syslogd */
196 if (device & LOG) { 196 if (device & LOG) {
197 /* don`t out "\r\n" */ 197 /* don`t out "\r\n" */
198 openlog(bb_applet_name, 0, LOG_DAEMON); 198 openlog(applet_name, 0, LOG_DAEMON);
199 syslog(LOG_INFO, "%s", msg + 1); 199 syslog(LOG_INFO, "%s", msg + 1);
200 closelog(); 200 closelog();
201 } 201 }
@@ -982,7 +982,7 @@ int init_main(int argc, char **argv)
982#if !ENABLE_DEBUG_INIT 982#if !ENABLE_DEBUG_INIT
983 /* Expect to be invoked as init with PID=1 or be invoked as linuxrc */ 983 /* Expect to be invoked as init with PID=1 or be invoked as linuxrc */
984 if (getpid() != 1 && 984 if (getpid() != 1 &&
985 (!ENABLE_FEATURE_INITRD || !strstr(bb_applet_name, "linuxrc"))) 985 (!ENABLE_FEATURE_INITRD || !strstr(applet_name, "linuxrc")))
986 { 986 {
987 bb_show_usage(); 987 bb_show_usage();
988 } 988 }