summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2016-03-22 17:27:35 -0700
committerBrian Dolbec <dolsen@gentoo.org>2016-03-22 17:27:35 -0700
commit329d2f3956245bc9451a492dad52fc98c880847b (patch)
tree6334d9b59dd141395d0749de6c40780e8343d585 /app-emulation/qemu-init-scripts/files/qemu-init-script
parentTIMEOUT: remove duplicate default settings (diff)
downloadkvm-tools-329d2f3956245bc9451a492dad52fc98c880847b.tar.gz
kvm-tools-329d2f3956245bc9451a492dad52fc98c880847b.tar.bz2
kvm-tools-329d2f3956245bc9451a492dad52fc98c880847b.zip
Add version info and functions
Diffstat (limited to 'app-emulation/qemu-init-scripts/files/qemu-init-script')
-rwxr-xr-x[-rw-r--r--]app-emulation/qemu-init-scripts/files/qemu-init-script9
1 files changed, 8 insertions, 1 deletions
diff --git a/app-emulation/qemu-init-scripts/files/qemu-init-script b/app-emulation/qemu-init-scripts/files/qemu-init-script
index f8773c9..937ddfe 100644..100755
--- a/app-emulation/qemu-init-scripts/files/qemu-init-script
+++ b/app-emulation/qemu-init-scripts/files/qemu-init-script
@@ -13,6 +13,8 @@
# where 'kvm' is the virtual machine type ('qemu' and 'kvm' allowed)
# and 'myserver' is the name of your instance.
+VERSION="0.3.0"
+
VMNAME=${SVCNAME#*.}
VMTYPE=${SVCNAME%.*}
VM_BINARY=
@@ -74,7 +76,7 @@ TIMEOUT=${TIMEOUT:-300}
SMP=${SMP:-1}
export KVM_USER=${KVM_USER:-"root"}
-extra_commands="reboot"
+extra_commands="reboot version"
depend() {
if [ "$VMNAME" = "$SVCNAME" ]; then
@@ -253,3 +255,8 @@ stop() {
eend $?
fi
}
+
+version() {
+ echo "qemu-init-scripts version: ${VERSION}"
+}
+