Last active
May 6, 2019 03:54
-
-
Save GrahamWalters/f597e743ae1a0d7271ee2f267fe35976 to your computer and use it in GitHub Desktop.
On supported systems, restarts computer and unlocks FileVault one time
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo fdesetup authrestart | |
# It will ask for: | |
# 1. the sudo password | |
# 2. the drive password or recovery key | |
# -delayminutes <minutes> Number of minutes before restart. | |
# -1 to set the key but allow something like a software update the restart the computer. | |
sudo fdesetup authrestart -delayminutes -1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment