ia64/xen-unstable

view tools/examples/xen-backend.agent @ 8740:3d7ea7972b39

Update patches for linux 2.6.15.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Thu Feb 02 17:16:00 2006 +0000 (2006-02-02)
parents cb215a84d1af
children bf1dc22ca24c
line source
1 #! /bin/sh
3 PATH=/etc/xen/scripts:$PATH
5 case "$XENBUS_TYPE" in
6 vbd)
7 /etc/xen/scripts/block "$ACTION"
8 ;;
9 vtpm)
10 /etc/xen/scripts/vtpm "$ACTION"
11 ;;
12 vif)
13 [ -n "$script" ] && $script "$ACTION"
14 ;;
15 esac
17 case "$ACTION" in
18 add)
19 ;;
20 remove)
21 # remove device frontend store entries
22 xenstore-rm -t $(xenstore-read "$XENBUS_PATH/frontend") || true
24 # remove device backend store entries
25 xenstore-rm -t "$XENBUS_PATH" || true
26 xenstore-rm -t "error/$XENBUS_PATH" || true
27 ;;
28 online)
29 ;;
30 offline)
31 ;;
32 esac