Detect if reboot now was checked
On the finish page, when it asks reboot now or reboot later. How can I detected what the user has selected after pressing finish?

I want to do some things when the user presses reboot later.

Needs some help on this one, can't seem to figure it out.