From d73dc5b07390fb90e7f605871c993a28eedf1d46 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 10 Nov 1999 23:13:02 +0000 Subject: Updates to usage, and made tar work. -Erik --- console-tools/chvt.c | 2 +- console-tools/deallocvt.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'console-tools') diff --git a/console-tools/chvt.c b/console-tools/chvt.c index 81d199527..bea00ea83 100644 --- a/console-tools/chvt.c +++ b/console-tools/chvt.c @@ -19,7 +19,7 @@ chvt_main(int argc, char** argv) int fd, num; if ( ( argc != 2) || (**(argv+1) == '-' ) ) { - usage ("chvt \n"); + usage ("chvt N\n\nChange foreground virtual terminal to /dev/ttyN\n"); } fd = get_console_fd("/dev/console"); num = atoi(argv[1]); diff --git a/console-tools/deallocvt.c b/console-tools/deallocvt.c index ae4dbb5a8..1e13ff69c 100644 --- a/console-tools/deallocvt.c +++ b/console-tools/deallocvt.c @@ -17,8 +17,10 @@ int deallocvt_main(int argc, char *argv[]) { int fd, num, i; - if (argc < 1) /* unlikely */ - exit(1); + if ( ( argc != 2) || (**(argv+1) == '-' ) ) { + usage ("deallocvt N\n\nDeallocate unused virtual terminal /dev/ttyN\n"); + } + progname = argv[0]; fd = get_console_fd("/dev/console"); -- cgit v1.2.3