summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPaul Fox2005-08-01 18:12:30 +0000
committerPaul Fox2005-08-01 18:12:30 +0000
commitfc2256a6ca7f943d671edaceac1ed1dfe3d1751c (patch)
treebd9d3d8d3ac6ad21dbf31c7a40387d1a13f084a8 /include
parent41a72ecd1936bc0b4ae75c723c88129bb01928ff (diff)
downloadbusybox-fc2256a6ca7f943d671edaceac1ed1dfe3d1751c.zip
busybox-fc2256a6ca7f943d671edaceac1ed1dfe3d1751c.tar.gz
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 8ef5f46..d6aee55 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 291ccb9..967ab3f 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 \