Remove 'panic' command (it works), don't ask for a keypress in panic, as

exit() does.  Perhaps it shouldn't?
This commit is contained in:
Mike Smith 1998-09-18 02:01:38 +00:00
parent b521106fc5
commit c676c40b0d
2 changed files with 2 additions and 15 deletions

View File

@ -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

View File

@ -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);
}