# $NetBSD: xen-subr-nbsd,v 1.1.2.2 2011/01/12 18:32:18 tron Exp $
#
# Contains commonly used functions which are used by Xen scripts

# xenstore_read_default path default
#
# Read the given path in XenStore. Return default if path does not exist
#
xenstore_read_default() {
  xenstore-read "$1" 2>/dev/null || echo "$2"
}
