From 36c9a2489d1f0e3d4e6a890bb86edde64d719acb Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sun, 11 Sep 2016 14:12:39 +0200 Subject: 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 --- sys/src/9/port/devcons.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'sys/src/9/port') 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; -- cgit v1.2.3