[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:06:03 UTC 2002


Sorry, I made a typo:

> My workaround (ttyS0::respawn:/bin/sh -sc ". /etc/profile" 
> </dev/ttyS0 >/dev/ttyS0 2>/dev/ttyS0) still works.

should be 

  ::respawn:/bin/sh -sc ". /etc/profile" </dev/ttyS0 >/dev/ttyS0 2>/dev/ttyS0)

(Thought I should correct this to prevent confusion)

Rich Wilson
Agilent Technologies
425-335-2245
rich_wilson at agilent.com

> -----Original Message-----
> From: WILSON,RICH (A-LakeStevens,ex1) 
> Sent: Tuesday, July 23, 2002 10:00 AM
> To: 'andersen at codepoet.org'; WILSON,RICH (A-LakeStevens,ex1)
> Cc: griebl at gmx.de; busybox at busybox.net
> Subject: RE: [BusyBox] ash running /etc/profile when started from
> inittab, take II
> 
> 
> 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