summaryrefslogtreecommitdiffstats
path: root/etc/devd
diff options
context:
space:
mode:
authorgjb <gjb@FreeBSD.org>2014-09-26 02:30:47 +0000
committergjb <gjb@FreeBSD.org>2014-09-26 02:30:47 +0000
commitd7f74356449e59ba511e94714ccff7ee2f7219ff (patch)
tree28a75f09346b1f6fc8d967dc567ff8bd8644ca7e /etc/devd
parent8c4f6ee128c206b479ac27824a2f8c5ceede92db (diff)
downloadFreeBSD-src-d7f74356449e59ba511e94714ccff7ee2f7219ff.zip
FreeBSD-src-d7f74356449e59ba511e94714ccff7ee2f7219ff.tar.gz
Revert r272149, which introduces obscure vestiges from the
r272128 reversal. Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'etc/devd')
-rw-r--r--etc/devd/Makefile4
-rw-r--r--etc/devd/hyperv.conf19
2 files changed, 23 insertions, 0 deletions
diff --git a/etc/devd/Makefile b/etc/devd/Makefile
index 433436b..50bc457 100644
--- a/etc/devd/Makefile
+++ b/etc/devd/Makefile
@@ -10,6 +10,10 @@ FILES+= apple.conf
FILES+= asus.conf
.endif
+.if ${MK_HYPERV} != "no"
+FILES+= hyperv.conf
+.endif
+
NO_OBJ=
FILESDIR= /etc/devd
FILESMODE= 644
diff --git a/etc/devd/hyperv.conf b/etc/devd/hyperv.conf
new file mode 100644
index 0000000..bed7383
--- /dev/null
+++ b/etc/devd/hyperv.conf
@@ -0,0 +1,19 @@
+# $FreeBSD$
+#
+# Hyper-V specific events
+
+notify 10 {
+ match "system" "DEVFS";
+ match "subsystem" "CDEV";
+ match "type" "CREATE";
+ match "cdev" "hv_kvp_dev";
+ action "/usr/sbin/hv_kvp_daemon";
+};
+
+notify 10 {
+ match "system" "DEVFS";
+ match "subsystem" "CDEV";
+ match "type" "DESTROY";
+ match "cdev" "hv_kvp_dev";
+ action "pkill -x hv_kvp_daemon";
+};
OpenPOWER on IntegriCloud