Skip to main content
edited tags
Link
bmike
  • 241.3k
  • 80
  • 433
  • 958
Source Link
Matthew
  • 1.1k
  • 3
  • 14
  • 27

How to detect if Mac if rebooting after a power failure using terminal?

As I asked in the title, how can I check if a Mac is rebooting after experiencing a power failure. It would be preferable to check this using terminal or some other script, as I would like to test this automatically in a script upon system startup.