3
COMMAND="$(basename $0)"
4
TOOLSTACK=$(. /usr/lib/xen-common/bin/xen-toolstack); RET=$?; [ $RET -eq 0 ] || exit $RET
6
if [ "$(basename "$TOOLSTACK")" != "$COMMAND" ]; then
7
echo "ERROR: A different toolstack ($(basename "$TOOLSTACK")) have been selected!" >&2
11
exec "$TOOLSTACK" "$@"