ref: b10a9e7d3bae3472bb487c861970f661eb67e04c
parent: 7c2f6c927017a3085a2083622c8b97104a379a17
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Sep 11 10:12:39 EDT 2016
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
--- a/sys/src/9/port/devcons.c
+++ b/sys/src/9/port/devcons.c
@@ -28,7 +28,6 @@
enum
{- CMhalt,
CMreboot,
CMpanic,
CMrdb,
@@ -36,7 +35,6 @@
Cmdtab rebootmsg[] =
{- CMhalt, "halt", 1,
CMreboot, "reboot", 0,
CMpanic, "panic", 0,
CMrdb, "rdb", 0,
@@ -749,9 +747,6 @@
}
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;
--
⑨