shithub: riscv

Download patch

ref: 36c9a2489d1f0e3d4e6a890bb86edde64d719acb
parent: 95c9f5bf37a5d8a659aa1aad34dee81afbdf8938
author: cinap_lenrek <[email protected]>
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;