~ubuntu-branches/ubuntu/trusty/xen-common/trusty

« back to all changes in this revision

Viewing changes to tools/hotplug/Linux/xen-backend.agent

  • Committer: Bazaar Package Importer
  • Author(s): Bastian Blank
  • Date: 2009-11-22 16:51:53 UTC
  • mfrom: (5.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20091122165153-d36l98kbx8a930h2
Tags: 3.4.2-2
* Redefine Xen version tests to allow detection of bare metal.
  (closes: #556859)
* Support oldstyle Xen kernel without xenfs. (closes: #557151)
* Use debhelper compat level 7.
* Remove oldstable-only conflicts.
* Add wrapper for xenpm.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/bash
 
2
 
 
3
PATH=/etc/xen/scripts:$PATH
 
4
 
 
5
. /etc/xen/scripts/locking.sh
 
6
 
 
7
claim_lock xenbus_hotplug_global
 
8
 
 
9
case "$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
    ;;
 
22
  vscsi)
 
23
    /etc/xen/scripts/vscsi "$ACTION"
 
24
    ;;
 
25
esac
 
26
 
 
27
case "$ACTION" in
 
28
  add)
 
29
    ;;
 
30
  remove)
 
31
    /etc/xen/scripts/xen-hotplug-cleanup
 
32
    ;;
 
33
  online)
 
34
    ;;
 
35
  offline)
 
36
    ;;
 
37
esac
 
38
 
 
39
release_lock xenbus_hotplug_global