diff options
author | cinap_lenrek <cinap_lenrek@localhost> | 2011-04-17 09:29:38 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@localhost> | 2011-04-17 09:29:38 +0000 |
commit | 95758309f394f79ac52a774cd02eb7136346d145 (patch) | |
tree | 6bc627632e961f74c18b46bcf9991a859e55a442 /sys/src/cmd/cwfs/con.c | |
parent | edca9072a5e9c278371960b30bf818f99f0d1430 (diff) |
cwfs: make noauth a storable config option so one can boot without factotum and nvram
Diffstat (limited to 'sys/src/cmd/cwfs/con.c')
-rw-r--r-- | sys/src/cmd/cwfs/con.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/src/cmd/cwfs/con.c b/sys/src/cmd/cwfs/con.c index c1aa59623..0a7aa2134 100644 --- a/sys/src/cmd/cwfs/con.c +++ b/sys/src/cmd/cwfs/con.c @@ -696,6 +696,14 @@ cmd_time(int argc, char *argv[]) } void +cmd_noauth(int, char *[]) +{ + noauth = !noauth; + if(noauth) + print("authentication is DISABLED\n"); +} + +void cmd_noattach(int, char *[]) { noattach = !noattach; @@ -759,15 +767,14 @@ installcmds(void) cmd_install("who", "[user ...] -- print attaches", cmd_who); cmd_install("hangup", "chan -- clunk files", cmd_hangup); cmd_install("printconf", "-- print configuration", cmd_printconf); + cmd_install("noauth", "toggle noauth flag", cmd_noauth); cmd_install("noattach", "toggle noattach flag", cmd_noattach); cmd_install("files", "report on files structure", cmd_files); - attachflag = flag_install("attach", "-- attach calls"); chatflag = flag_install("chat", "-- verbose"); errorflag = flag_install("error", "-- on errors"); whoflag = flag_install("allchans", "-- on who"); authdebugflag = flag_install("authdebug", "-- report authentications"); - authdisableflag = flag_install("authdisable", "-- disable authentication"); } int |