Mercurial > hvf > hvf-old
changeset 502:d11407b235c3
cp: use the operator userid specified in the system config
Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> |
---|---|
date | Fri, 22 Apr 2011 13:19:40 -0400 |
parents | f9fe2cddf9e0 |
children | 4e44881e27de |
files | cp/shell/init.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/cp/shell/init.c Fri Apr 22 13:19:39 2011 -0400 +++ b/cp/shell/init.c Fri Apr 22 13:19:40 2011 -0400 @@ -240,6 +240,7 @@ void spawn_oper_shell(struct console *con) { struct virt_sys *sys; + char tn[32]; oper_con = con; @@ -249,12 +250,13 @@ sys->con = con; con->sys = sys; - sys->directory = find_user_by_id("operator"); + sys->directory = find_user_by_id(sysconf.oper_userid); BUG_ON(IS_ERR(sys->directory)); sys->print_ts = 1; /* print timestamps */ - sys->task = create_task("OPERATOR-vcpu0", shell_init, sys); + snprintf(tn, 32, "%s-vcpu0", sysconf.oper_userid); + sys->task = create_task(tn, shell_init, sys); BUG_ON(IS_ERR(sys->task)); BUG_ON(IS_ERR(create_task("console-attn", shell_con_attn, NULL)));