The '-/bin/sh' permanently restarts

Detlef Vollmann dv at vollmann.ch
Sat Oct 31 17:39:14 UTC 2009


Bernhard Reutner-Fischer wrote:
> On Fri, Oct 30, 2009 at 11:56:13PM +0100, Detlef Vollmann wrote:
>> Mike Frysinger wrote:
>>> On Thursday 29 October 2009 16:06:54 Detlef Vollmann wrote:
>>>> Bernhard Reutner-Fischer wrote:
>>>>> I suggest you just run a sh on e.g. ttyS0 if you're debugging and turn
>>>>> it off if you're not. My favourite link as a stub:
>>>>> http://repo.or.cz/w/buildroot.git?a=blob_plain;f=target/generic/target_bu
>>>>> sybox_skeleton/etc/inittab;hb=HEAD
>>>> Sorry, I'm probably missing something:
>>>> How do you start the shell if you don't have a shell?
>>>> This looks to me like a hen-and-egg problem.
>>> shell's arent init / process managers.  use init.
>> Exactly.
>> My point was: if I don't start a shell by inittab (because I only
>> want it for debugging), then I can't start a shell later...
> 
> huh?
> sed -i -e "/^#ttyS0/s/^[#]*//" /etc/inittab && kill -HUP 1
Sorry, I'm probably missing something here:
Where do you run this command, if you don't have a shell?

   Detlef



More information about the busybox mailing list