aboutsummaryrefslogtreecommitdiff
path: root/toys/Config.in
diff options
context:
space:
mode:
Diffstat (limited to 'toys/Config.in')
-rw-r--r--toys/Config.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/toys/Config.in b/toys/Config.in
index 77e59e4d..59271ddb 100644
--- a/toys/Config.in
+++ b/toys/Config.in
@@ -34,6 +34,22 @@ config HELLO
help
A hello world program. You don't need this.
+config ONEIT
+ bool "oneit"
+ default n
+ help
+ usage: oneit [-p] command [...]
+
+ A simple init program that runs a single supplied command line with a
+ controlling tty (so CTRL-C can kill it).
+
+ -p Power off instead of rebooting when command exits.
+
+ The oneit command runs the supplied command line as a child process
+ (because PID 1 has signals blocked), attached to /dev/tty0, in its
+ own session. Then oneit reaps zombies until the child exits, at
+ which point it reboots (or with -p, powers off) the system.
+
config PWD
bool "pwd"
default n