Compare commits

...

2 Commits

Author SHA1 Message Date
Fierelier c6bfecd79c Make requested paths more obvious 2024-02-15 16:17:16 +01:00
Fierelier 74992d736a Add support for giving path to list 2024-02-15 16:15:24 +01:00
2 changed files with 6 additions and 6 deletions

View File

@ -1,19 +1,19 @@
#!/usr/bin/env bash
cat << EOF
Commands:
* mountman list
* mountman list [/dev]
List known block devices.
* mountman plist [/path]
* mountman plist [/dev]
List known block device(s), with technical information, parseable with bash.
* mountman mount
* mountman mount </dev>
Mount block device, returns the mountpoint's path.
* mountman umount </path>
* mountman umount </dev>
Unmount block device.
* mountman eject </path>
* mountman eject </dev>
Eject block device, and shut it off, if possible.
Legend:

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash
set +e
bash "$APP_DIR/cmd/main" plist | while read mm_cmd; do
bash "$APP_DIR/cmd/main" plist "$2" | while read mm_cmd; do
eval "$mm_cmd"
if ! [ "$mm_format" = "" ]; then
echo "[$mm_label] $mm_size - $mm_path ($mm_type/$mm_format)"