Log reboot cause

Hi all!

Is it possible to log on a file the reboot cause of the Atheros AR9331 of the Yun board ?
In example, if via Putty I send the command "reboot", is it possible to log on a RebootLog.txt file the cause? (in example, in this case will be "manual reboot")

Hope my question is clear enough :slight_smile:

Thanks