Skip to content
Create a gist now

Instantly share code, notes, and snippets.

OSX Lion hibernate script
if [ "$(whoami)" != 'root' ]; then
echo "You have no permission to run $0 as non-root user."
exit 1;
pmset hibernatemode 25
osascript -e 'tell application "System Events" to sleep'
sleep 5m
pmset hibernatemode 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.