Octave 3.2.1 - detect system power on and system boot

What methods can I use to detect the following events?

  • System power on
  • System boot