aboutsummaryrefslogtreecommitdiff
path: root/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'init.c')
-rw-r--r--init.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/init.c b/init.c
index b59e9a147..a3e165ecc 100644
--- a/init.c
+++ b/init.c
@@ -118,7 +118,7 @@ initAction *initActionList = NULL;
118static char *secondConsole = VT_SECONDARY; 118static char *secondConsole = VT_SECONDARY;
119static char *log = VT_LOG; 119static char *log = VT_LOG;
120static int kernelVersion = 0; 120static int kernelVersion = 0;
121static char termType[32] = "TERM=ansi"; 121static char termType[32] = "TERM=linux";
122static char console[32] = _PATH_CONSOLE; 122static char console[32] = _PATH_CONSOLE;
123static void delete_initAction(initAction * action); 123static void delete_initAction(initAction * action);
124 124
@@ -314,6 +314,8 @@ static void console_init()
314 if (ioctl(0, TIOCGSERIAL, &sr) == 0) { 314 if (ioctl(0, TIOCGSERIAL, &sr) == 0) {
315 log = NULL; 315 log = NULL;
316 secondConsole = NULL; 316 secondConsole = NULL;
317 /* Force the TERM setting to vt102 for serial console */
318 snprintf(termType, sizeof(termType) - 1, "TERM=vt102");
317 message(LOG | CONSOLE, 319 message(LOG | CONSOLE,
318 "serial console detected. Disabling virtual terminals.\r\n"); 320 "serial console detected. Disabling virtual terminals.\r\n");
319 } 321 }
@@ -839,11 +841,11 @@ extern int init_main(int argc, char **argv)
839 841
840 /* Hello world */ 842 /* Hello world */
841#ifndef DEBUG_INIT 843#ifndef DEBUG_INIT
842 message(LOG | CONSOLE, 844 message(LOG,
843 "init started: BusyBox v%s (%s) multi-call binary\r\n", 845 "init started: BusyBox v%s (%s) multi-call binary\r\n",
844 BB_VER, BB_BT); 846 BB_VER, BB_BT);
845#else 847#else
846 message(LOG | CONSOLE, 848 message(LOG,
847 "init(%d) started: BusyBox v%s (%s) multi-call binary\r\n", 849 "init(%d) started: BusyBox v%s (%s) multi-call binary\r\n",
848 getpid(), BB_VER, BB_BT); 850 getpid(), BB_VER, BB_BT);
849#endif 851#endif
@@ -851,7 +853,7 @@ extern int init_main(int argc, char **argv)
851 853
852 /* Mount /proc */ 854 /* Mount /proc */
853 if (mount("proc", "/proc", "proc", 0, 0) == 0) { 855 if (mount("proc", "/proc", "proc", 0, 0) == 0) {
854 message(LOG | CONSOLE, "Mounting /proc: done.\n"); 856 message(LOG, "Mounting /proc: done.\n");
855 kernelVersion = get_kernel_revision(); 857 kernelVersion = get_kernel_revision();
856 } else 858 } else
857 message(LOG | CONSOLE, "Mounting /proc: failed!\n"); 859 message(LOG | CONSOLE, "Mounting /proc: failed!\n");