diff options
| author | Paul Fox <pgf@brightstareng.com> | 2005-08-01 18:12:30 +0000 |
|---|---|---|
| committer | Paul Fox <pgf@brightstareng.com> | 2005-08-01 18:12:30 +0000 |
| commit | fc2256a6ca7f943d671edaceac1ed1dfe3d1751c (patch) | |
| tree | bd9d3d8d3ac6ad21dbf31c7a40387d1a13f084a8 /include | |
| parent | 41a72ecd1936bc0b4ae75c723c88129bb01928ff (diff) | |
| download | busybox-w32-fc2256a6ca7f943d671edaceac1ed1dfe3d1751c.tar.gz busybox-w32-fc2256a6ca7f943d671edaceac1ed1dfe3d1751c.tar.bz2 busybox-w32-fc2256a6ca7f943d671edaceac1ed1dfe3d1751c.zip | |
applying patch for bug 72:
0000072: Add applet to redirect console output via ioctl(..., TIOCCONS)
applet name changed to setconsole, since suse has a very similar
utility. better to treat differences as bugs than invent a new command.
Diffstat (limited to 'include')
| -rw-r--r-- | include/applets.h | 3 | ||||
| -rw-r--r-- | include/usage.h | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h index 8ef5f460f..d6aee5599 100644 --- a/include/applets.h +++ b/include/applets.h | |||
| @@ -552,6 +552,9 @@ | |||
| 552 | #ifdef CONFIG_SEQ | 552 | #ifdef CONFIG_SEQ |
| 553 | APPLET(seq, seq_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) | 553 | APPLET(seq, seq_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) |
| 554 | #endif | 554 | #endif |
| 555 | #ifdef CONFIG_SETCONSOLE | ||
| 556 | APPLET(setconsole, setconsole_main, _BB_DIR_SBIN, _BB_SUID_NEVER) | ||
| 557 | #endif | ||
| 555 | #ifdef CONFIG_SETKEYCODES | 558 | #ifdef CONFIG_SETKEYCODES |
| 556 | APPLET(setkeycodes, setkeycodes_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) | 559 | APPLET(setkeycodes, setkeycodes_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) |
| 557 | #endif | 560 | #endif |
diff --git a/include/usage.h b/include/usage.h index 291ccb91a..967ab3f19 100644 --- a/include/usage.h +++ b/include/usage.h | |||
| @@ -2351,6 +2351,13 @@ | |||
| 2351 | "\tFIRST\tLAST\n" \ | 2351 | "\tFIRST\tLAST\n" \ |
| 2352 | "\tFIRST\tINCREMENT\tLAST" | 2352 | "\tFIRST\tINCREMENT\tLAST" |
| 2353 | 2353 | ||
| 2354 | #define setconsole_trivial_usage \ | ||
| 2355 | "[-r|--reset] [DEVICE]" | ||
| 2356 | #define setconsole_full_usage \ | ||
| 2357 | "Redirects system console output to DEVICE (default: /dev/tty).\n\n" \ | ||
| 2358 | "Options:\n" \ | ||
| 2359 | "\t-r\tReset output to /dev/console." | ||
| 2360 | |||
| 2354 | #define setkeycodes_trivial_usage \ | 2361 | #define setkeycodes_trivial_usage \ |
| 2355 | "SCANCODE KEYCODE ..." | 2362 | "SCANCODE KEYCODE ..." |
| 2356 | #define setkeycodes_full_usage \ | 2363 | #define setkeycodes_full_usage \ |
