mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
40 lines
566 B
Bash
40 lines
566 B
Bash
#! /bin/bash
|
|
|
|
PATH=/etc/xen/scripts:$PATH
|
|
|
|
. /etc/xen/scripts/locking.sh
|
|
|
|
claim_lock xenbus_hotplug_global
|
|
|
|
case "$XENBUS_TYPE" in
|
|
tap)
|
|
/etc/xen/scripts/blktap "$ACTION"
|
|
;;
|
|
vbd)
|
|
/etc/xen/scripts/block "$ACTION"
|
|
;;
|
|
vtpm)
|
|
/etc/xen/scripts/vtpm "$ACTION"
|
|
;;
|
|
vif)
|
|
[ -n "$script" ] && $script "$ACTION"
|
|
;;
|
|
vscsi)
|
|
/etc/xen/scripts/vscsi "$ACTION"
|
|
;;
|
|
esac
|
|
|
|
case "$ACTION" in
|
|
add)
|
|
;;
|
|
remove)
|
|
/etc/xen/scripts/xen-hotplug-cleanup
|
|
;;
|
|
online)
|
|
;;
|
|
offline)
|
|
;;
|
|
esac
|
|
|
|
release_lock xenbus_hotplug_global
|