summaryrefslogtreecommitdiffstats
path: root/etc/devd.conf
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2014-12-10 14:36:44 +0000
committertrasz <trasz@FreeBSD.org>2014-12-10 14:36:44 +0000
commit5a2f0c0e007e0c887b40dd74adf4feb0b5703c29 (patch)
tree7510c012671cf60372e8a75bbee1eff547c1177a /etc/devd.conf
parent3e3c248f832f796881ac2ce0d45049552e8d9a9b (diff)
downloadFreeBSD-src-5a2f0c0e007e0c887b40dd74adf4feb0b5703c29.zip
FreeBSD-src-5a2f0c0e007e0c887b40dd74adf4feb0b5703c29.tar.gz
Add "-media" autofs map, to access data on removable media, such as CD
drives or flash keys. It can be enabled by uncommenting a single entry in default /etc/auto_master. It can also be easily modified to use fuse-based filesystems instead of in-kernel ones. There is still one deficiency - the mountpoints are permanent, they don't disappear when user removes the media. Fixing it needs some autofs changes. Differential Revision: https://reviews.freebsd.org/D1210 MFC after: 1 month Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'etc/devd.conf')
-rw-r--r--etc/devd.conf12
1 files changed, 12 insertions, 0 deletions
diff --git a/etc/devd.conf b/etc/devd.conf
index 12f6931..7428717 100644
--- a/etc/devd.conf
+++ b/etc/devd.conf
@@ -318,4 +318,16 @@ notify 0 {
action "/usr/local/etc/rc.d/postgresql restart";
};
+# Discard autofs caches, useful for the -media special map. The one
+# second delay is for GEOM to finish tasting.
+#
+# XXX: We should probably have a devctl(4) event that fires after GEOM
+# tasting.
+#
+notify 100 {
+ match "system" "DEVFS";
+ match "cdev" "(da|mmcsd)[0-9]+";
+ action "sleep 1 && /usr/sbin/automount -c";
+};
+
*/
OpenPOWER on IntegriCloud