2013-09-26 17:14:40 +02:00

12 lines
317 B
Plaintext

# $NetBSD: xen-subr-nbsd,v 1.1 2011/01/12 00:11:19 jym 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"
}