Updated mount-all-volumes
This commit is contained in:
parent
25bacb9892
commit
a9ebeee748
1 changed files with 21 additions and 20 deletions
|
|
@ -12,27 +12,28 @@ from functions.data import *
|
||||||
init_global_vars()
|
init_global_vars()
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
try:
|
try:
|
||||||
# Prep
|
# Prep
|
||||||
clear_screen()
|
clear_screen()
|
||||||
print_standard('{}: Volume mount tool'.format(KIT_NAME_FULL))
|
print_standard('{}: Volume mount tool'.format(KIT_NAME_FULL))
|
||||||
|
|
||||||
# Mount volumes
|
# Mount volumes
|
||||||
report = mount_volumes(all_devices=True)
|
report = mount_volumes(all_devices=True)
|
||||||
|
|
||||||
# Print report
|
# Print report
|
||||||
print_info('\nResults')
|
print_info('\nResults')
|
||||||
for vol_name, vol_data in sorted(report.items()):
|
for vol_name, vol_data in sorted(report.items()):
|
||||||
show_data(indent=4, width=20, **vol_data['show_data'])
|
show_data(indent=4, width=20, **vol_data['show_data'])
|
||||||
|
|
||||||
# Done
|
# Done
|
||||||
print_standard('\nDone.')
|
print_standard('\nDone.')
|
||||||
if 'gui' in sys.argv:
|
if 'gui' in sys.argv:
|
||||||
pause("Press Enter to exit...")
|
pause("Press Enter to exit...")
|
||||||
popen_program(['nohup', 'thunar', '/media'], pipe=True)
|
popen_program(['nohup', 'thunar', '/media'], pipe=True)
|
||||||
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