diff options
| author | Xin LI <delphij@FreeBSD.org> | 2014-09-17 02:32:22 +0000 |
|---|---|---|
| committer | Xin LI <delphij@FreeBSD.org> | 2014-09-17 02:32:22 +0000 |
| commit | 76cd7220b53b6483fe2f2c44dccf152ae2b3f43c (patch) | |
| tree | 58786bc3c1dfc4c908ece1d82cc44b797fc8f4ec /etc/devd | |
| parent | 6574b8ed19b093f0af09501d2c9676c28993cb97 (diff) | |
Notes
Diffstat (limited to 'etc/devd')
| -rw-r--r-- | etc/devd/Makefile | 4 | ||||
| -rw-r--r-- | etc/devd/hyperv.conf | 19 |
2 files changed, 23 insertions, 0 deletions
diff --git a/etc/devd/Makefile b/etc/devd/Makefile index 94cafdc66288..82a5000ff8ae 100644 --- a/etc/devd/Makefile +++ b/etc/devd/Makefile @@ -18,6 +18,10 @@ FILES+= uath.conf usb.conf FILES+= zfs.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 000000000000..8abafa9dba4e --- /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" "/dev/hv_kvp_dev"; + action "/usr/sbin/hv_kvp_daemon"; +}; + +notify 10 { + match "system" "DEVFS"; + match "subsystem" "CDEV"; + match "type" "DESTROY"; + match "cdev" "/dev/hv_kvp_dev"; + action "pkill -x hv_kvp_daemon"; +}; |
