diff options
author | vodz <vodz@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-10-12 15:34:25 +0000 |
---|---|---|
committer | vodz <vodz@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-10-12 15:34:25 +0000 |
commit | 3ccc6852b29b385ffde47f98772b55704b47792a (patch) | |
tree | 0da08a6d852fcb5d68bbe3a368460ed815b74923 /init | |
parent | 645a928b37cf8f09f3d0648030d5b454753428fc (diff) | |
download | busybox-w32-3ccc6852b29b385ffde47f98772b55704b47792a.tar.gz busybox-w32-3ccc6852b29b385ffde47f98772b55704b47792a.tar.bz2 busybox-w32-3ccc6852b29b385ffde47f98772b55704b47792a.zip |
usage bb_dev_null
git-svn-id: svn://busybox.net/trunk/busybox@11846 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'init')
-rw-r--r-- | init/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/init/init.c b/init/init.c index 166f526e0..96c704670 100644 --- a/init/init.c +++ b/init/init.c | |||
@@ -353,7 +353,7 @@ static void console_init(void) | |||
353 | #ifndef CONFIG_SYSLOGD | 353 | #ifndef CONFIG_SYSLOGD |
354 | log_console = | 354 | log_console = |
355 | #endif | 355 | #endif |
356 | safe_strncpy(console, "/dev/null", sizeof(console)); | 356 | safe_strncpy(console, bb_dev_null, sizeof(console)); |
357 | } else { | 357 | } else { |
358 | s = getenv("TERM"); | 358 | s = getenv("TERM"); |
359 | /* check for serial console */ | 359 | /* check for serial console */ |
@@ -834,7 +834,7 @@ static void new_init_action(int action, const char *command, const char *cons) | |||
834 | /* do not run entries if console device is not available */ | 834 | /* do not run entries if console device is not available */ |
835 | if (access(cons, R_OK | W_OK)) | 835 | if (access(cons, R_OK | W_OK)) |
836 | return; | 836 | return; |
837 | if (strcmp(cons, "/dev/null") == 0 && (action & ASKFIRST)) | 837 | if (strcmp(cons, bb_dev_null) == 0 && (action & ASKFIRST)) |
838 | return; | 838 | return; |
839 | 839 | ||
840 | new_action = calloc((size_t) (1), sizeof(struct init_action)); | 840 | new_action = calloc((size_t) (1), sizeof(struct init_action)); |