Files
xen/tools/examples/xen-backend.agent
T
Alastair Tse b2bfd9596f Switch hotplug scripts to use /bin/bash rather than /bin/sh.
Hotplug scripts include certain bash-isms that are not supported under
some distros' default shell (eg. Ubuntu 6.10's use of dash)

Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-04 14:25:58 +00:00

37 lines
513 B
Bash
Executable File

#! /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"
;;
esac
case "$ACTION" in
add)
;;
remove)
/etc/xen/scripts/xen-hotplug-cleanup
;;
online)
;;
offline)
;;
esac
release_lock xenbus_hotplug_global