[BusyBox] ash running /etc/profile when started from inittab, take II
rich_wilson at agilent.com
rich_wilson at agilent.com
Tue Jul 23 11:01:03 UTC 2002
Erik,
When I try the patch and "ttyS0::respawn:-/bin/sh", I get the dreaded
"sh: can't access tty; job control turned off", but the good
news is that it DOES read /etc/profile, and otherwise seems to be OK.
If I try "ttyS0::respawn:-/bin/sh </dev/ttyS0 >/dev/ttyS0 2>/dev/ttyS0"
I get the "exexexexex..." with another ex every second or so.
My workaround (ttyS0::respawn:/bin/sh -sc ". /etc/profile" </dev/ttyS0 >/dev/ttyS0 2>/dev/ttyS0) still works.
Rich
Rich Wilson
Agilent Technologies
425-335-2245
rich_wilson at agilent.com
> -----Original Message-----
> From: Erik Andersen [mailto:andersen at codepoet.org]
> Sent: Monday, July 22, 2002 9:43 PM
> To: rich_wilson at agilent.com
> Cc: griebl at gmx.de; busybox at busybox.net
> Subject: Re: [BusyBox] ash running /etc/profile when started from
> inittab, take II
>
>
> On Mon Jul 22, 2002 at 12:15:50PM -0600,
> rich_wilson at agilent.com wrote:
> > Any attempt I make to run something called "-/bin/sh" from
> inittab seems doomed to failure.
> > Am I missing something?
> > My current try is
> > ::respawn:-/bin/sh </dev/ttyS0 >/dev/ttyS0 2>/dev/ttyS0
> > which just prints "ex" every second or so. The serial console
> > isn't too useful in this state!
>
> Could you try the following patch and change your inittab entry to
> ttyS0::respawn:-/bin/sh
> and let me know if this helps?
>
> -Erik
>
> --
> Erik B. Andersen http://codepoet-consulting.com/
> --This message was written using 73% post-consumer electrons--
>
More information about the busybox
mailing list