summaryrefslogtreecommitdiff
path: root/sys/src/9
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2016-09-11 14:12:39 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2016-09-11 14:12:39 +0200
commit36c9a2489d1f0e3d4e6a890bb86edde64d719acb (patch)
tree6a382b6db7ba98551fcaf0e785aa8e9a82df12a2 /sys/src/9
parent95c9f5bf37a5d8a659aa1aad34dee81afbdf8938 (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')
-rw-r--r--sys/src/9/port/devcons.c5
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;