-
-
Save msfidelis/c9a2bd81cf5dfdc9adb3 to your computer and use it in GitHub Desktop.
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
#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