setpriv: dump ambient capabilities
[oweals/busybox.git] / console-tools / openvt.c
index 56f50c6cd49933ed85c1e352c4530700ef70d710..5cbc717ec94ecf0d34e2cee6d836b68bf772a96e 100644 (file)
@@ -7,6 +7,29 @@
  *
  * Licensed under GPLv2 or later, see file LICENSE in this source tree.
  */
+//config:config OPENVT
+//config:      bool "openvt"
+//config:      default y
+//config:      select PLATFORM_LINUX
+//config:      help
+//config:        This program is used to start a command on an unused
+//config:        virtual terminal.
+
+//applet:IF_OPENVT(APPLET(openvt, BB_DIR_USR_BIN, BB_SUID_DROP))
+
+//kbuild:lib-$(CONFIG_OPENVT) += openvt.o
+
+//usage:#define openvt_trivial_usage
+//usage:       "[-c N] [-sw] [PROG ARGS]"
+//usage:#define openvt_full_usage "\n\n"
+//usage:       "Start PROG on a new virtual terminal\n"
+//usage:     "\n       -c N    Use specified VT"
+//usage:     "\n       -s      Switch to the VT"
+/* //usage:     "\n    -l      Run PROG as login shell (by prepending '-')" */
+//usage:     "\n       -w      Wait for PROG to exit"
+//usage:
+//usage:#define openvt_example_usage
+//usage:       "openvt 2 /bin/ash\n"
 
 #include <linux/vt.h>
 #include "libbb.h"