Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Fox <pgf@brightstareng.com>2005-08-01 22:12:30 +0400
committerPaul Fox <pgf@brightstareng.com>2005-08-01 22:12:30 +0400
commitfc2256a6ca7f943d671edaceac1ed1dfe3d1751c (patch)
treebd9d3d8d3ac6ad21dbf31c7a40387d1a13f084a8 /include
parent41a72ecd1936bc0b4ae75c723c88129bb01928ff (diff)
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.h3
-rw-r--r--include/usage.h7
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 @@
#ifdef CONFIG_SEQ
APPLET(seq, seq_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
#endif
+#ifdef CONFIG_SETCONSOLE
+ APPLET(setconsole, setconsole_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
+#endif
#ifdef CONFIG_SETKEYCODES
APPLET(setkeycodes, setkeycodes_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
#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 @@
"\tFIRST\tLAST\n" \
"\tFIRST\tINCREMENT\tLAST"
+#define setconsole_trivial_usage \
+ "[-r|--reset] [DEVICE]"
+#define setconsole_full_usage \
+ "Redirects system console output to DEVICE (default: /dev/tty).\n\n" \
+ "Options:\n" \
+ "\t-r\tReset output to /dev/console."
+
#define setkeycodes_trivial_usage \
"SCANCODE KEYCODE ..."
#define setkeycodes_full_usage \