mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
devd: autofs: Move autofs related events to a separate file
If a user don't have FreeBSD-autofs installed there is no need to try calling automount on every GEOM event. It's also easier to add/delete autofs related event in a separate file. Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D42495 Reviewed by: imp (cherry picked from commit b3c116d50ecacaab5236e0488cb74c1bcf614ae7)
This commit is contained in:
parent
42144dc11e
commit
32fdac77b3
3 changed files with 14 additions and 7 deletions
|
|
@ -11,6 +11,11 @@ DEVDDIR= /etc/devd
|
|||
DEVD+= asus.conf
|
||||
.endif
|
||||
|
||||
CONFGROUPS+= AUTOFS
|
||||
AUTOFSDIR= ${DEVDDIR}
|
||||
AUTOFS+= autofs.conf
|
||||
AUTOFSPACKAGE= autofs
|
||||
|
||||
CONFGROUPS+= DHCLIENT
|
||||
DHCLIENTDIR= ${DEVDDIR}
|
||||
DHCLIENT+= dhclient.conf
|
||||
|
|
|
|||
9
sbin/devd/autofs.conf
Normal file
9
sbin/devd/autofs.conf
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#
|
||||
# autofs(5) specific devd events
|
||||
|
||||
# Discard autofs caches, useful for the -media special map.
|
||||
notify 100 {
|
||||
match "system" "GEOM";
|
||||
match "subsystem" "DEV";
|
||||
action "/usr/sbin/automount -c";
|
||||
};
|
||||
|
|
@ -159,13 +159,6 @@ notify 0 {
|
|||
action "service postgresql restart";
|
||||
};
|
||||
|
||||
# Discard autofs caches, useful for the -media special map.
|
||||
notify 100 {
|
||||
match "system" "GEOM";
|
||||
match "subsystem" "DEV";
|
||||
action "/usr/sbin/automount -c";
|
||||
};
|
||||
|
||||
# Handle userland coredumps.
|
||||
# This commented out handler makes it possible to run an
|
||||
# automated debugging session after the core dump is generated.
|
||||
|
|
|
|||
Loading…
Reference in a new issue