aboutsummaryrefslogtreecommitdiff
path: root/toys/Config.in
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-11-25 13:48:02 -0500
committerRob Landley <rob@landley.net>2006-11-25 13:48:02 -0500
commitb23d230ad55e028a4516e0cd60b7ecdc25504e4b (patch)
tree4d18c658bc429a40263e20cf6634c51824d88bcb /toys/Config.in
parent1674e2ace4dcce67c3920dcdbf2f441903194b68 (diff)
downloadtoybox-b23d230ad55e028a4516e0cd60b7ecdc25504e4b.tar.gz
Add oneit.
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