Updated mount-backup-shares
This commit is contained in:
parent
a9ebeee748
commit
4ddce7cfbe
1 changed files with 21 additions and 20 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue