I have a computer running linux, which can be powered on by its power button, via wake on lan and by acpi rtc timer of the bios. This is running fine.
But depending on how the computer was powered on I want a different behaviour.
Is it possible to find out the way the computer was turned on by a script?
Hardware is an ASUS E35M1-I Mini-ITX-Board, Software is the most recent Debian wheezy using kernel 3.2.0-3-amd64.