ia64/xen-unstable

view netbsd-2.0-xen-sparse/nbconfig-xen @ 2465:ed44deec5fb6

bitkeeper revision 1.1159.1.143 (413faaf2dqvBsgM4ABe5flo11aYh1A)

Fix domain-finalizing dom0_op to check its inputs for sanity.
author kaf24@freefall.cl.cam.ac.uk
date Thu Sep 09 00:59:30 2004 +0000 (2004-09-09)
parents 309c1fb27f87
children 4553261ed7cb ab0042a6d724
line source
1 #! /bin/sh
2 #
4 : ${HOS:=$(uname -s | tr /A-Z/ /a-z/)}
5 : ${HARCH:=$(uname -i)}
6 : ${NETBSD_RELEASE:=$(basename $(cd $(dirname $0) && pwd) | sed 's/netbsd-\([0-9]\+\.[0-9]\+\).*/\1/')}
7 : ${NETBSD_VERSION:=$(basename $(cd $(dirname $0) && pwd) | sed 's/netbsd-\([0-9]\+\.[0-9]\+.*\)-xen.*/\1/')}
9 TOOLDIR="$TOPDIR/../netbsd-${NETBSD_RELEASE}-tools/$HOS-$HARCH"; export TOOLDIR
11 CONF="$1"
12 case "$1" in
13 /*)
14 CONF="$1"
15 ;;
16 *)
17 CONF="$TOPDIR"/sys/arch/xen/conf/"$1"
18 ;;
19 esac
20 exec "${TOOLDIR}/bin/nbconfig" -b $(pwd) -s "$TOPDIR"/sys "$CONF"