3. Find the "powerup_memain_endcurrenttask" section in /etc/systemui/systemui.xml and add the following:
<menuitem priority="600" name="powerup_memain_endcurrenttask"> <return>10</return> <po>osso-powerup-shutdown</po> </menuitem>
If anyone actually wants the source to this boring and short program, let me know.