summaryrefslogtreecommitdiffhomepage
path: root/examples/inittab
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-09-14 22:01:31 +0000
committerEric Andersen <andersen@codepoet.org>2000-09-14 22:01:31 +0000
commit7e3bf6e339a2d1e28fc8ee53ca57919f32eba6d6 (patch)
tree85ee868c652b45c0859554d73b702acff5df7879 /examples/inittab
parentce40fc044bc50897739581ec0f9fcda38791384d (diff)
Add in a patch from robotti@metconnect.com and Chip Rosenthal to make
init do login shell stuff. -Erik
Diffstat (limited to 'examples/inittab')
-rw-r--r--examples/inittab20
1 files changed, 13 insertions, 7 deletions
diff --git a/examples/inittab b/examples/inittab
index bb547b740..2515264c7 100644
--- a/examples/inittab
+++ b/examples/inittab
@@ -44,7 +44,6 @@
# tty2::askfirst:/bin/sh
#
-
# Boot-time system configuration/initialization script.
# This is run first except when booting in single-user mode.
#
@@ -52,16 +51,23 @@
# /bin/sh invocations on selected ttys
#
-# Start an "askfirst" shell on the console (whatever that may be)
-::askfirst:/bin/sh
-# Start an "askfirst" shell on /dev/tty2
-tty2::askfirst:/bin/sh
+# Note below that we prefix the shell commands with a "-" to indicate to the
+# shell that it is supposed to be a login shell. Normally this is handled by
+# login, but since we are bypassing login in this case, BusyBox lets you do
+# this yourself...
+#
+# Start an "askfirst" shell on the console (whatever that may be).
+::askfirst:-/bin/sh
+#
+# Start an "askfirst" shell on /dev/tty2-4
+tty2::askfirst:-/bin/sh
+tty3::askfirst:-/bin/sh
+tty4::askfirst:-/bin/sh
# /sbin/getty invocations for selected ttys
#
-tty4::respawn:/sbin/getty 38400 tty4
tty5::respawn:/sbin/getty 38400 tty5
-
+tty6::respawn:/sbin/getty 38400 tty6
# Example of how to put a getty on a serial line (for a terminal)
#