[BusyBox] Passing arguments to init when loading the kernel?
Erik Andersen
andersen at lineo.com
Thu Feb 22 00:51:43 UTC 2001
On Tue Feb 20, 2001 at 07:44:44PM +0100, Erik Gustavsson wrote:
>
> According to these two code fragments termType is always set to the
> correct value:
>
> in console_init():
>
> if ((s = getenv("TERM")) != NULL) {
> snprintf(termType, sizeof(termType) - 1, "TERM=%s, s);
> }
>
> and ...
>
> /* Force the TERM setting to vt102 for serial console --
> * iff TERM is set to linux (the default) */
> if (strcmp( termType, "TERM=linux" ) == 0)
> snprintf(termType, sizeof(termType) - 1, "TERM=vt102");
>
> So if joe user sets TERM=FlashyTerm2000, termType will have this value, as
> will the environment for the init scripts... No need to change the patch.
>
> In fact, I think the change would put "TERM=Linux" back into termType if
> BB had changed it to "vt102", would it not?
Yup. My bad. I have reverted my ill-thought-out change.
-Erik
--
Erik B. Andersen email: andersen at lineo.com
--This message was written using 73% post-consumer electrons--
More information about the busybox
mailing list