ia64/xen-unstable

changeset 9092:849723752858

Silence the messages that are emitted when removing nodes that already have
been removed. This is fine, in a cleanup script.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Thu Mar 02 02:01:17 2006 +0100 (2006-03-02)
parents b2d3117cc7ed
children 689da5e0a970
files tools/examples/xen-hotplug-cleanup
line diff
     1.1 --- a/tools/examples/xen-hotplug-cleanup	Thu Mar 02 01:59:28 2006 +0100
     1.2 +++ b/tools/examples/xen-hotplug-cleanup	Thu Mar 02 02:01:17 2006 +0100
     1.3 @@ -12,10 +12,11 @@ dir=$(dirname "$0")
     1.4  claim_lock "block"
     1.5  
     1.6  # remove device frontend store entries
     1.7 -xenstore-rm -t $(xenstore-read "$XENBUS_PATH/frontend") || true
     1.8 +xenstore-rm -t \
     1.9 +  $(xenstore-read "$XENBUS_PATH/frontend" 2>/dev/null) 2>/dev/null || true
    1.10  
    1.11  # remove device backend store entries
    1.12 -xenstore-rm -t "$XENBUS_PATH"       || true
    1.13 -xenstore-rm -t "error/$XENBUS_PATH" || true
    1.14 +xenstore-rm -t "$XENBUS_PATH"        2>/dev/null || true
    1.15 +xenstore-rm -t "error/$XENBUS_PATH"  2>/dev/null || true
    1.16  
    1.17  release_lock "block"