[BusyBox] init & ash & job control

Richard Wilson rich_wilson at agilent.com
Wed May 1 11:28:03 UTC 2002


I'm trying to modify a working embedded system to replace
much of it with busybox.  However, I'm having some startup
problems.

In particular, I can't seem to get job control for my ash shell.

If inittab contains something like
   ::respawn:-/bin/sh
I get the message "sh: can't access tty; job control turned off"
If inittab contains something like
   ::respawn:/bin/sh -i </dev/ttyS0 >/dev/ttyS0 2>/dev/ttyS0
then sh (busybox ash) exits immediately, and gets restarted
again and again.

  Process '/bin/sh -i </dev/ttyS0 >/dev/ttyS0 2>/dev/ttyS0' \
  (pid 20) exited. Scheduling it for restart.
  Starting pid 21, console /dev/console; '/bin/sh'

System:
  Power pc with serial console
  Kernel 2.4.14.modified for my hardware
  uClibc-0.9.11
  busybox-0.60.3 (static linked to uClibc)

If I replace busybox-init with MontaVista's version of init
(and change inittab appropriately) it works as desired.

If I replace busybox with montaVista busybox, which is
compiled with libc.so.6 (dynamic), it works as desired.

In both cases, I need to add the redirections to inittab to
get job control.

Help!

tia

Rich Wilson
rich_wilson at agilent.com

[no cut-and-paste above; may be typing errors]



More information about the busybox mailing list