aboutsummaryrefslogtreecommitdiffstats
path: root/tools/examples
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-10-07 13:15:52 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-10-07 13:15:52 +0100
commite3430966b875517990c942204afaad0dfac13510 (patch)
treedc72e860c80c4ed2d75e72d0f8de0dae934df8bb /tools/examples
parent44e73911fe7a71dca0bae5c7b9994e5d9415d26c (diff)
downloadxen-e3430966b875517990c942204afaad0dfac13510.tar.gz
xen-e3430966b875517990c942204afaad0dfac13510.tar.bz2
xen-e3430966b875517990c942204afaad0dfac13510.zip
Add udev rules that map similar to the hotplug agent. Based off of what
Chris Bainbridge posted the end of last week but doing things as directly as possible. Signed-off-by: Jeremy Katz <katzj@redhat.com>
Diffstat (limited to 'tools/examples')
-rw-r--r--tools/examples/xen-backend.rules4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/examples/xen-backend.rules b/tools/examples/xen-backend.rules
new file mode 100644
index 0000000000..3eb5a7d56a
--- /dev/null
+++ b/tools/examples/xen-backend.rules
@@ -0,0 +1,4 @@
+SUBSYSTEM=="xen-backend", KERNEL=="vbd*", ACTION=="add", RUN+="/etc/xen/scripts/block bind"
+SUBSYSTEM=="xen-backend", KERNEL=="vbd*", ACTION=="remove", RUN+="/etc/xen/scripts/block unbind"
+SUBSYSTEM=="xen-backend", KERNEL=="vif*", ENV{PHYSDEVDRIVER}=="vif", ACTION=="online", RUN+="$env{script} up"
+SUBSYSTEM=="xen-backend", ACTION=="remove", RUN+="/usr/bin/xenstore-rm $env{XENBUS_PATH}"