From 0a229586f2d576bd0595bd783ccc800d2cb11fe6 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Wed, 7 Sep 2011 08:10:35 +0200 Subject: cwfs: cfs needs to run after con_session(), so revert previous change and just run consserve() before starting the srv procs --- sys/src/cmd/cwfs/con.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sys/src/cmd/cwfs/con.c') diff --git a/sys/src/cmd/cwfs/con.c b/sys/src/cmd/cwfs/con.c index a58b0b52e..41fe43142 100644 --- a/sys/src/cmd/cwfs/con.c +++ b/sys/src/cmd/cwfs/con.c @@ -6,6 +6,7 @@ static char statsdef[20]; /* default stats list */ static int whoflag; static void consserve1(void *); +static void installcmds(void); void consserve(void) @@ -13,7 +14,12 @@ consserve(void) int i; strncpy(cons.chan->whochan, "console", sizeof(cons.chan->whochan)); + installcmds(); con_session(); + cmd_exec("cfs"); + cmd_exec("users"); + cmd_exec("version"); + for(i = 0; command[i].arg0; i++) if(strcmp("cwcmd", command[i].arg0) == 0){ cmd_exec("cwcmd touchsb"); @@ -744,7 +750,7 @@ cmd_chatty(int argc, char *argv[]) chatty = atoi(argv[1]); } -void +static void installcmds(void) { cmd_install("allow", "-- disable permission checking", cmd_allow); -- cgit v1.2.3