main
#!/usr/bin/env bash # # Set your mac to use smartsleep mode # # Copyright 2017, Joe Block <jpb@unixorn.net> if [[ "$(uname -s)" != 'Darwin' ]]; then echo 'Sorry, this script only works on macOS' exit 1 fi exec udo pmset -a hibernatemode 3