We used two entries in our / etc / inittab:
::sysinit:/etc/init.d/rcS ttyS0::respawn:-/bin/sh
rcS is a shell script that usually starts our application, but in a special case we call "return" to end it, which apparently allows / bin / sh to take over tty, since we got a shell prompt, do some service.
Now inittab looks like this:
::once:/etc/init.d/rcS
Now we start the shell by executing "/ bin / bash -i" in the rcS script, since we do not want to always run the second shell (due to memory limitations), which is usually never used.
But the created bash does not support job management, which is very limiting.
So my question is: can I create a shell (and possibly finish the rcS script) in the same way that I processed init in our previous solution so that I get a shell with job management again?
source share