diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-09-11 14:12:39 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-09-11 14:12:39 +0200 |
commit | 36c9a2489d1f0e3d4e6a890bb86edde64d719acb (patch) | |
tree | 6a382b6db7ba98551fcaf0e785aa8e9a82df12a2 /sys/src/9/port | |
parent | 95c9f5bf37a5d8a659aa1aad34dee81afbdf8938 (diff) |
devcons: remove /dev/reboot "halt" command...
the "halt" command written to /dev/reboot just causes the
machine to crash... its also undocumented... removing it.
--
cinap
Diffstat (limited to 'sys/src/9/port')
-rw-r--r-- | sys/src/9/port/devcons.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/src/9/port/devcons.c b/sys/src/9/port/devcons.c index 814a6e238..f254d85e7 100644 --- a/sys/src/9/port/devcons.c +++ b/sys/src/9/port/devcons.c @@ -28,7 +28,6 @@ static int writebintime(char*, int); enum { - CMhalt, CMreboot, CMpanic, CMrdb, @@ -36,7 +35,6 @@ enum Cmdtab rebootmsg[] = { - CMhalt, "halt", 1, CMreboot, "reboot", 0, CMpanic, "panic", 0, CMrdb, "rdb", 0, @@ -749,9 +747,6 @@ conswrite(Chan *c, void *va, long n, vlong off) } ct = lookupcmd(cb, rebootmsg, nelem(rebootmsg)); switch(ct->index) { - case CMhalt: - reboot(nil, 0, 0); - break; case CMreboot: rebootcmd(cb->nf-1, cb->f+1); break; |