Thanks anyway for trying to assist, but I did read the man page before posting, and correctly editing the shutdown.sh script has no effect. Replies from anybody who has attempted to reproduce the problem, with details about what you observed, would be appreciated. By the way, although it's included in the man page, the "+" in
Code:
shutdown -h +t
(where t is some # of minutes) is optional, so I generally don't bother to include "+" in my shutdown commands, but I did try both ways in my edits to shutdown.sh before posting the first time, just to be sure.
So anyway, the problem is, the command
Code:
shutdown -h #
works in the terminal as expected, but editing the Carberry shutdown.sh script to delay shutdown has no effect; something is still sending a shutdown immediately command, as evidenced by the fact that the power is off within a minute after the ignition is switched off. I'm guessing one would also need to edit the Carberry daemon in some way, but due to its complexity I don't want to spend the time to verify or disprove that, and then figure out what code to edit and how. For now, I've acquired an alternative 12v -> 5v power control PCB which definitely does support delayed shutdown, from another manufacturer. It doesn't have any of Carberry's other functionality, but for the "daily driver" multimedia Pi in my dashboard, delayed shutdown is a must have, and I'll use my Carberry in the garage only, connected to another Pi, to read OBD codes and hopefully, eventually, to clear erroneous trouble codes rather than pay a mechanic for an hour of labor, just to flip a bit. Still, it would be nice to get delayed shutdown working with the Carberry someday, so the unit permanently installed in the dash could also be my diagnostic computer.