kernel: keep serial info in system env
. otherwise serial hardware gets reinitialized by tty
This commit is contained in:
parent
963a10e15a
commit
49d4116100
1 changed files with 2 additions and 2 deletions
|
@ -49,8 +49,8 @@ static int mb_set_param(char *bigbuf, char *name, char *value, kinfo_t *cbi)
|
||||||
int valuelen = strlen(value);
|
int valuelen = strlen(value);
|
||||||
|
|
||||||
/* Some variables we recognize */
|
/* Some variables we recognize */
|
||||||
if(!strcmp(name, SERVARNAME)) { cbi->do_serial_debug = 1; return 0; }
|
if(!strcmp(name, SERVARNAME)) { cbi->do_serial_debug = 1; }
|
||||||
if(!strcmp(name, SERBAUDVARNAME)) { cbi->serial_debug_baud = atoi(value); return 0; }
|
if(!strcmp(name, SERBAUDVARNAME)) { cbi->serial_debug_baud = atoi(value); }
|
||||||
|
|
||||||
/* Delete the item if already exists */
|
/* Delete the item if already exists */
|
||||||
while (*p) {
|
while (*p) {
|
||||||
|
|
Loading…
Reference in a new issue