summaryrefslogtreecommitdiff
path: root/console-tools/deallocvt.c
diff options
context:
space:
mode:
authorEric Andersen1999-11-10 23:13:02 +0000
committerEric Andersen1999-11-10 23:13:02 +0000
commitd73dc5b07390fb90e7f605871c993a28eedf1d46 (patch)
tree3e448e6550da52d2709e5f52fbae56e9df9462cc /console-tools/deallocvt.c
parent84d85680712573c7a8bd7d0491c3f944dc08ad10 (diff)
downloadbusybox-d73dc5b07390fb90e7f605871c993a28eedf1d46.zip
busybox-d73dc5b07390fb90e7f605871c993a28eedf1d46.tar.gz
Updates to usage, and made tar work.
-Erik
Diffstat (limited to 'console-tools/deallocvt.c')
-rw-r--r--console-tools/deallocvt.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/console-tools/deallocvt.c b/console-tools/deallocvt.c
index ae4dbb5..1e13ff6 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");