File data/vifm-media changed (mode: 100755) (index 432b0b031..c3b0a660e) |
1 |
1 |
#!/bin/bash |
#!/bin/bash |
2 |
2 |
|
|
3 |
3 |
# This script is meant to support common media managing utilities. |
# This script is meant to support common media managing utilities. |
|
4 |
|
# |
4 |
5 |
# Parameters: |
# Parameters: |
5 |
6 |
# - list -- list media |
# - list -- list media |
6 |
7 |
# - mount <device> -- mount a device |
# - mount <device> -- mount a device |
7 |
8 |
# - unmount <path> -- unmount given mount point |
# - unmount <path> -- unmount given mount point |
|
9 |
|
# |
|
10 |
|
# Supported utilities (only one is used, listed higher to lower priority): |
|
11 |
|
# - udevil: udisks-like command-line tool with no D-Bus or daemon |
|
12 |
|
# requirements: `udevil` and `devmon` commands (both are part of udevil) |
|
13 |
|
# - udisks: first vesion of disk management D-Bus daemon |
|
14 |
|
# requirements: `udisks` and `umount` commands |
|
15 |
|
# - udisks2: second vesion of disk management D-Bus daemon |
|
16 |
|
# requirements: `udisksctl` and either `python2` or `python3` with "dbus" |
|
17 |
|
# module |
8 |
18 |
|
|
9 |
19 |
function usage_error() { |
function usage_error() { |
10 |
20 |
echo "Usage: vifm-media list | mount <device> | unmount <path>" |
echo "Usage: vifm-media list | mount <device> | unmount <path>" |