Added modifyhd command

This commit is contained in:
2015-04-12 21:00:58 +02:00
parent dc4aab4f38
commit 22bca445f2
2 changed files with 18 additions and 1 deletions

1
README
View File

@@ -28,6 +28,7 @@ Current version of script was written and tested against VBoxManage in version
- import
- list
- metrics
- modifyhd
- natnetwork
- registervm
- setextradata

View File

@@ -7,7 +7,6 @@
#
# [1] Sebastian T. Hafner <sonix@own-hero.net>
#
# [ ] modifyhd
# [ ] modifyvm
_VBoxManage() {
@@ -1177,6 +1176,23 @@ _VBoxManage() {
;;
modifyhd)
if [[ ${prev} == ${cmd} ]]; then
_hdd_comp ${cur}
else
_find_item_name 2
items=(--type --autoreset --property --compact --resize)
_get_excluded_items "${items[@]}"
COMPREPLY=( $(compgen -W "$result" -- ${cur}) )
case "${prev}" in
--type)
COMPREPLY=( $(compgen -W "normal writethrough immutable
shareable readonly multiattach" -- ${cur}) )
;;
--autoreset)
COMPREPLY=( $(compgen -W "on off" -- ${cur}) )
;;
esac
fi
;;
modifyvm)
;;