summaryrefslogtreecommitdiffstats
path: root/distribution/virt/import/isfileconsole
blob: d9da20bf3924e9583c51c814834c4f9909a9c135 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#/bin/bash
#

if [[ $# != 1 ]]; then
	echo "Usage: $0 [guestname]"
	exit 1
fi

if ! virsh dumpxml $1; then
	echo "problem with virsh dumpxml $1"
	exit 1
fi

if virsh dumpxml $1 | grep -q "<serial type='file'>"; then
	exit 0
else
	exit 1
fi