summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-emulation/qemu-init-scripts/files/qtap-manipulate')
-rwxr-xr-x[-rw-r--r--]app-emulation/qemu-init-scripts/files/qtap-manipulate11
1 files changed, 11 insertions, 0 deletions
diff --git a/app-emulation/qemu-init-scripts/files/qtap-manipulate b/app-emulation/qemu-init-scripts/files/qtap-manipulate
index bf89dcb..53ab346 100644..100755
--- a/app-emulation/qemu-init-scripts/files/qtap-manipulate
+++ b/app-emulation/qemu-init-scripts/files/qtap-manipulate
@@ -2,6 +2,8 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public Licens
+VERSION="0.3.0"
+
has() {
local desired=$1 x
shift
@@ -47,6 +49,7 @@ usage() {
echo "create-specific qtap-name [ -u user ] [ -g group ]"
echo "create [ -u user ] [ -g group ]"
echo "destroy qtap-name"
+ echo "version"
echo
}
@@ -55,6 +58,10 @@ usage_die() {
die "$@"
}
+show_version() {
+ echo "qtap-manipulate version: ${VERSION}"
+}
+
create_user=
create_group=
@@ -110,8 +117,12 @@ case "$1" in
create_node "$qtap"
$output_qtap && echo "$qtap"
;;
+ version)
+ show_version
+ ;;
*)
usage_die "Unknown command $1"
;;
esac
exit 0
+