Prevent MacBook autoboot

Modern Macs autoboot when lid is opened, this can be a problem for a lot of people (oilrig workers, for example, have to demonstrate their computers are not powered on before flying to the rig). Documenting Apple&rsquo;s guidance for posterity. To prevent startup when opening the lid or connecting to power: sudo nvram BootPreference=%00 To prevent startup only when opening the lid: sudo nvram…