Custom run level init.d script:

startup script on run level 0 and 6, as 34th start only e.g.

update-rc.d which-tty start 34 0 6 .

will create

/etc/rc0.d/S34which-tty
/etc/rc6.d/S34which-tty