Massive necrobump but for those who want to use this you need a simlink in /etc/rc5.d/ because the kindle's default runlevel is 5.

I spent a few hours figuring this out The scripts in rc6.d are run at shutdown. And for those mentioning upstart The kindle 3 does not have it. Its pure sysvinit