Quote:
Kill it with signal 2. That'll stop it and it won't restart because it thinks it's received Ctrl-C.


But then init will attempt to run bash. If that exists, it'll leave you at a shell prompt in the car with no way to talk to it. The code for init looks something like this:

Code:

for (;;)
{
int rc = try_run_player();
if (rc == REBOOT_EMPEG)
shutdown_and_reboot();
else if (rc != RESTART_PLAYER)
try_run_bash();
}



Obviously, that could be refactored a little, but I hope you get the idea.

If bash doesn't exist, init will restart the player, and then you'll have two copies running.

I think the only sensible way to do it is to hook the exec() call in init.
_________________________
-- roger