6a17885159
interface name for the vif, e.g. xvif(4) for dom0, and xennet(4) for domU. This allows querying the XenStore for the vif names, rather than hardcoding their syntax in vif-* scripts. Add a xen-subr shell script that can contain customized functions, and include it in the vif-ip/vif-bridge scripts. Introduce xenstore_read_default that returns the value of a specific key from XenStore, or the default specified value when key is absent. Bump revision. ok bouyer@. See http://mail-index.netbsd.org/port-xen/2011/01/11/msg006405.html
11 lines
317 B
Text
11 lines
317 B
Text
# $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"
|
|
}
|