source: trunk/packages/xen-3.1/xen-3.1/tools/examples/xen-backend.agent @ 34

Last change on this file since 34 was 34, checked in by hartmans, 18 years ago

Add xen and xen-common

  • Property svn:executable set to *
File size: 513 bytes
Line 
1#! /bin/bash
2
3PATH=/etc/xen/scripts:$PATH
4
5. /etc/xen/scripts/locking.sh
6
7claim_lock xenbus_hotplug_global
8
9case "$XENBUS_TYPE" in
10  tap)
11    /etc/xen/scripts/blktap "$ACTION"
12    ;;
13  vbd)
14    /etc/xen/scripts/block "$ACTION"
15    ;;
16  vtpm)
17    /etc/xen/scripts/vtpm "$ACTION"
18    ;;
19  vif)
20    [ -n "$script" ] && $script "$ACTION"
21    ;;
22esac
23
24case "$ACTION" in
25  add)
26    ;;
27  remove)
28    /etc/xen/scripts/xen-hotplug-cleanup
29    ;;
30  online)
31    ;;
32  offline)
33    ;;
34esac
35
36release_lock xenbus_hotplug_global
Note: See TracBrowser for help on using the repository browser.