Skip to content

Instantly share code, notes, and snippets.

@dsiver
Created July 3, 2016 02:50
Show Gist options
  • Save dsiver/2b52cccd1b71f749843b81037d0b9db5 to your computer and use it in GitHub Desktop.
Save dsiver/2b52cccd1b71f749843b81037d0b9db5 to your computer and use it in GitHub Desktop.
OS X Prevent External HDD Sleep
#!/bin/bash
# Volumes='<volume1> <volume2> ... <volumeN>'
# for i in $Volumes
# do
# touch /Volumes/${i}/.nosleep
# done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment