Artifact [7b9772c1b2]
Not logged in

Artifact 7b9772c1b2d1d5dc2ee7aae907fb07fbcf06e487:


#!/bin/sh
if [ -z "$1" ]; then
	echo "Usage: $0 vm-name"
	exit 1
fi

uri=`vms spiceuri $1`
if [ $? -gt 0 ]; then
	exit 1
fi
spicy $uri </dev/null
vws running $1 && /usr/lib/vms/ask_shutdown $1