aboutsummaryrefslogtreecommitdiff
path: root/src/usr/bin/myautomountd
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2020-09-25 21:09:00 -0400
committerB Stack <bgstack15@gmail.com>2020-09-25 21:09:00 -0400
commitaff4f239c303852e210ee56543cab03e8836247b (patch)
treec7121e6296ec369663eb0c98e1112c297323ba3a /src/usr/bin/myautomountd
parentrename to myautomount (diff)
downloadmyautomount-aff4f239c303852e210ee56543cab03e8836247b.tar.gz
myautomount-aff4f239c303852e210ee56543cab03e8836247b.tar.bz2
myautomount-aff4f239c303852e210ee56543cab03e8836247b.zip
add xdg autostart, and hide_when_no_media config opt
Diffstat (limited to 'src/usr/bin/myautomountd')
-rwxr-xr-xsrc/usr/bin/myautomountd9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/usr/bin/myautomountd b/src/usr/bin/myautomountd
index d23940a..3501b97 100755
--- a/src/usr/bin/myautomountd
+++ b/src/usr/bin/myautomountd
@@ -4,11 +4,10 @@
# Authors: beanpole135, bgstack15
# Startdate: 2020-09-23
# Title: Automount in Shell
-# Purpose: almost one-for-one translation of Go version
+# Purpose:
# History:
-# 2020-09-23 translated by bgstack15 to shell from Go version (reference 1)
-# Several translation notes: configuration split out into separate file
-# and given a Fedora flavor.
+# 2020-09-23 originally translated by bgstack15 to shell from Go version (reference 1)
+# 2020-09-25 diverged from original architecture
# Usage:
# Invoke this at X startup. This can be from the xdg autostart mechanism, or "exec myautomountd &" in ~/fluxbox.startup
# This is the backend to myautomount-trayicon
@@ -124,7 +123,7 @@ mkdir -p "${AUTOMOUNT_BASEDIR}"
udevadm monitor -u -s block 1> "${AUTOMOUNT_TMPFILE}" &
export AUTOMOUNT_PID="${!}"
test -n "${DEBUG}" && env | grep -E '^AUTOMOUNT_' 1>&2
-while ! test -e /tmp/kill-automount ;
+while ! test -e /tmp/kill-myautomount ;
do
tail -F "${AUTOMOUNT_TMPFILE}" 2>/dev/null | while read line ;
do
bgstack15