diff options
| author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 1999-11-10 23:13:02 +0000 |
|---|---|---|
| committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 1999-11-10 23:13:02 +0000 |
| commit | fe675f24f8afae61702b3e2aee9af34dd84a4d5b (patch) | |
| tree | 3e448e6550da52d2709e5f52fbae56e9df9462cc /console-tools/deallocvt.c | |
| parent | 51abdb45dd5418cdf8355e5c314307771f9b8c37 (diff) | |
| download | busybox-w32-fe675f24f8afae61702b3e2aee9af34dd84a4d5b.tar.gz busybox-w32-fe675f24f8afae61702b3e2aee9af34dd84a4d5b.tar.bz2 busybox-w32-fe675f24f8afae61702b3e2aee9af34dd84a4d5b.zip | |
Updates to usage, and made tar work.
-Erik
git-svn-id: svn://busybox.net/trunk/busybox@94 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'console-tools/deallocvt.c')
| -rw-r--r-- | console-tools/deallocvt.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 | |||
| 17 | deallocvt_main(int argc, char *argv[]) { | 17 | deallocvt_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"); |
