[PATCH] fix tty numbers in example inittab

Steven Honeyman stevenhoneyman at gmail.com
Fri Aug 1 21:09:11 UTC 2014


I've been reading the examples and documentation files for busybox...
and I think there's a small typo in the inittab example. If it's not a
mistake, could someone please explain how this is affects busybox init
with a login shell *and* a getty on tty4? I am new to this so I could
be missing something which seems obvious to everyone else!

---
 examples/inittab | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/inittab b/examples/inittab
index 01ceaef..653e3f5 100644
--- a/examples/inittab
+++ b/examples/inittab
@@ -64,8 +64,8 @@ tty3::askfirst:-/bin/sh
 tty4::askfirst:-/bin/sh

 # /sbin/getty invocations for selected ttys
-tty4::respawn:/sbin/getty 38400 tty5
-tty5::respawn:/sbin/getty 38400 tty6
+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)
 #::respawn:/sbin/getty -L ttyS0 9600 vt100
-- 
2.0.3


More information about the busybox mailing list