summaryrefslogtreecommitdiff
path: root/sysutils/xentools33/files/xen-subr-nbsd
blob: f0235fad828738e20c734ca7d06b766716d6446f (plain)
1
2
3
4
5
6
7
8
9
10
11
# $NetBSD: xen-subr-nbsd,v 1.1 2011/01/12 00:12:14 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"
}