ia64/xen-unstable

view tools/examples/xen-hotplug-cleanup @ 10098:48c0f5489d44

Remove Emacs variables settings from tail of our Linux files.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Thu May 18 11:39:03 2006 +0100 (2006-05-18)
parents 849723752858
children b071319927b6
line source
1 #! /bin/sh
3 dir=$(dirname "$0")
4 . "$dir/xen-hotplug-common.sh"
6 # Claim the lock protecting /etc/xen/scripts/block. This stops a race whereby
7 # paths in the store would disappear underneath that script as it attempted to
8 # read from the store checking for device sharing.
9 # Any other scripts that do similar things will have to have their lock
10 # claimed too.
11 # This is pretty horrible, but there's not really a nicer way of solving this.
12 claim_lock "block"
14 # remove device frontend store entries
15 xenstore-rm -t \
16 $(xenstore-read "$XENBUS_PATH/frontend" 2>/dev/null) 2>/dev/null || true
18 # remove device backend store entries
19 xenstore-rm -t "$XENBUS_PATH" 2>/dev/null || true
20 xenstore-rm -t "error/$XENBUS_PATH" 2>/dev/null || true
22 release_lock "block"