aboutsummaryrefslogtreecommitdiff
path: root/console-tools
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>1999-11-10 23:13:02 +0000
committerEric Andersen <andersen@codepoet.org>1999-11-10 23:13:02 +0000
commitd73dc5b07390fb90e7f605871c993a28eedf1d46 (patch)
tree3e448e6550da52d2709e5f52fbae56e9df9462cc /console-tools
parent84d85680712573c7a8bd7d0491c3f944dc08ad10 (diff)
downloadbusybox-w32-d73dc5b07390fb90e7f605871c993a28eedf1d46.tar.gz
busybox-w32-d73dc5b07390fb90e7f605871c993a28eedf1d46.tar.bz2
busybox-w32-d73dc5b07390fb90e7f605871c993a28eedf1d46.zip
Updates to usage, and made tar work.
-Erik
Diffstat (limited to 'console-tools')
-rw-r--r--console-tools/chvt.c2
-rw-r--r--console-tools/deallocvt.c6
2 files changed, 5 insertions, 3 deletions
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)
19 int fd, num; 19 int fd, num;
20 20
21 if ( ( argc != 2) || (**(argv+1) == '-' ) ) { 21 if ( ( argc != 2) || (**(argv+1) == '-' ) ) {
22 usage ("chvt </dev/ttyN>\n"); 22 usage ("chvt N\n\nChange foreground virtual terminal to /dev/ttyN\n");
23 } 23 }
24 fd = get_console_fd("/dev/console"); 24 fd = get_console_fd("/dev/console");
25 num = atoi(argv[1]); 25 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
17deallocvt_main(int argc, char *argv[]) { 17deallocvt_main(int argc, char *argv[]) {
18 int fd, num, i; 18 int fd, num, i;
19 19
20 if (argc < 1) /* unlikely */ 20 if ( ( argc != 2) || (**(argv+1) == '-' ) ) {
21 exit(1); 21 usage ("deallocvt N\n\nDeallocate unused virtual terminal /dev/ttyN\n");
22 }
23
22 progname = argv[0]; 24 progname = argv[0];
23 25
24 fd = get_console_fd("/dev/console"); 26 fd = get_console_fd("/dev/console");