Skip to content

Instantly share code, notes, and snippets.

@msfidelis
Created February 1, 2016 00:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msfidelis/c9a2bd81cf5dfdc9adb3 to your computer and use it in GitHub Desktop.
Save msfidelis/c9a2bd81cf5dfdc9adb3 to your computer and use it in GitHub Desktop.
#ESSA FUNÇÃO DESMONTA O HD DE BACKUP POR SEGURANÇA.
#DESCOMENTE A LINHA desmonta_hd() DENTRO DE backupfull() PARA UTILIZÁ-LA
def desmonta_hd(disk):
try:
umount = 'umount %s' % disk
subprocess.call(umount, shell=True)
return True
except:
return False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment