Thank you to both Pebert and sgrayban! I am building myself a gps media system for my car. Everything is complete with this simple code.
I installed BusyBox with an app, tho, but it works. I couldn`t figure out how to register the startup script, so I took the code below and put it in "settime" in init.d. Worked like a charm.
(/system/bin/sh /data/data/ignition.sh </dev/null >/dev/null 2>&1 )&
Than I replaced the "keyevent 223" with "reboot -p" like sgrayban suggested and now shutsdown.
Might be nice to cont some time after press to shutdown, but I will try to find a code of some sort. Not my best skill.