usage of cttyhack from boot shell script

Constantine Shulyupin const at linuxdriver.co.il
Thu May 13 23:16:05 UTC 2010


diff --git a/shell/Config.in b/shell/Config.in
index 3b16506..78a9677 100644
--- a/shell/Config.in
+++ b/shell/Config.in
@@ -354,9 +354,14 @@ config CTTYHACK
          It analyzes stdin with various ioctls, trying to determine whether
          it is a /dev/ttyN or /dev/ttySN (virtual terminal or serial line).
          If it detects one, it closes stdin/out/err and reopens that device.
-         Then it executes given program. Usage example for /etc/inittab
-         (for busybox init):
+         Then it executes given program.
+
+         Usage example for /etc/inittab (for busybox init):

          ::respawn:/bin/cttyhack /bin/sh

+         For boot shell script:
+
+         setsid cttyhack sh
+
 endmenu


-- 
Constantine Shulyupin
Embedded Linux Expert
TI DaVinci Expert
Tel-Aviv Israel
http://www.LinuxDriver.co.il/


More information about the busybox mailing list