diff options
author | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-09-07 08:10:35 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-09-07 08:10:35 +0200 |
commit | 0a229586f2d576bd0595bd783ccc800d2cb11fe6 (patch) | |
tree | 9b6785e4d5a32d230126fc40742cd8fec71dce3e /sys/src/cmd/cwfs/con.c | |
parent | 89a36a09f2bbc83e2b0e9feb870c85d3fc75e485 (diff) |
cwfs: cfs needs to run after con_session(), so revert previous change and just run consserve() before starting the srv procs
Diffstat (limited to 'sys/src/cmd/cwfs/con.c')
-rw-r--r-- | sys/src/cmd/cwfs/con.c | 8 |
1 files changed, 7 insertions, 1 deletions
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); |