summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>1998-09-18 02:01:38 +0000
committermsmith <msmith@FreeBSD.org>1998-09-18 02:01:38 +0000
commitef33b3f0949d3bd0210b15d184b66f12ee8735bc (patch)
tree0ee43388fb41666176de96ed91f197354a0f6c1b
parent757180a4cff5eb22b6469ea415ea7440a47bb533 (diff)
downloadFreeBSD-src-ef33b3f0949d3bd0210b15d184b66f12ee8735bc.zip
FreeBSD-src-ef33b3f0949d3bd0210b15d184b66f12ee8735bc.tar.gz
Remove 'panic' command (it works), don't ask for a keypress in panic, as
exit() does. Perhaps it shouldn't?
-rw-r--r--sys/boot/common/commands.c13
-rw-r--r--sys/boot/common/panic.c4
2 files changed, 2 insertions, 15 deletions
diff --git a/sys/boot/common/commands.c b/sys/boot/common/commands.c
index 8ed140a..e7b6725 100644
--- a/sys/boot/common/commands.c
+++ b/sys/boot/common/commands.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: commands.c,v 1.1.1.1 1998/08/21 03:17:41 msmith Exp $
+ * $Id: commands.c,v 1.2 1998/09/03 02:10:07 msmith Exp $
*/
#include <stand.h>
@@ -143,17 +143,6 @@ command_unset(int argc, char *argv[])
return(CMD_OK);
}
-COMMAND_SET(panic, "panic", "test panic", command_panic);
-
-static int
-command_panic(int argc, char *argv[])
-{
- char *cp;
-
- cp = unargv(argc - 1, argv + 1);
- panic(cp);
-}
-
COMMAND_SET(echo, "echo", NULL, command_echo);
static int
diff --git a/sys/boot/common/panic.c b/sys/boot/common/panic.c
index 9639e06..b531596 100644
--- a/sys/boot/common/panic.c
+++ b/sys/boot/common/panic.c
@@ -1,5 +1,5 @@
/*
- * $Id: panic.c,v 1.1.1.1 1998/08/21 03:17:41 msmith Exp $
+ * $Id: panic.c,v 1.2 1998/09/17 23:52:02 msmith Exp $
* From: $NetBSD: panic.c,v 1.2 1997/03/22 01:48:36 thorpej Exp $
*/
@@ -49,8 +49,6 @@ panic(const char *fmt,...)
printf(fmt, ap);
printf("\n");
va_end(ap);
- printf("Press a key to reboot\n");
- getchar();
exit(1);
}
OpenPOWER on IntegriCloud