local/bin/udisks-automount: Add documentation

master
Pierre Neidhardt 2018-05-23 17:50:20 +02:00
parent ef72ca4781
commit e4a156c756
1 changed files with 12 additions and 1 deletions

View File

@ -1,5 +1,16 @@
#!/bin/sh
## From https://wiki.archlinux.org/index.php/Udisks#udevadm_monitor.
if [ "$1" = "-h" ]; then
cat <<EOF>&2
Usage: ${0##*/}
Automatically mount external drives 'udisksctl'.
From https://wiki.archlinux.org/index.php/Udisks#udevadm_monitor.
EOF
exit
fi
pathtoname() {
udevadm info -p /sys/"$1" | awk -v FS== '/DEVNAME/ {print $2}'