Updated mount-backup-shares

This commit is contained in:
2Shirt 2018-12-27 20:28:26 -07:00
parent a9ebeee748
commit 4ddce7cfbe
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -13,26 +13,27 @@ from functions.network import *
init_global_vars() init_global_vars()
if __name__ == '__main__': if __name__ == '__main__':
try: try:
# Prep # Prep
clear_screen() clear_screen()
# Connect # Connect
connect_to_network() connect_to_network()
# Mount # Mount
if is_connected(): if is_connected():
mount_backup_shares(read_write=True) mount_backup_shares(read_write=True)
else: else:
# Couldn't connect # Couldn't connect
print_error('ERROR: No network connectivity.') print_error('ERROR: No network connectivity.')
# Done # Done
print_standard('\nDone.') print_standard('\nDone.')
#pause("Press Enter to exit...") #pause("Press Enter to exit...")
exit_script() exit_script()
except SystemExit: except SystemExit:
pass pass
except: except:
major_exception() major_exception()
# vim: sts=2 sw=2 ts=2