forked from ahurac/dotfiles
Ajout : fonctions pour ajouter ou supprimer des VM dans qemush
This commit is contained in:
parent
c115dbd144
commit
3497bd31e9
1 changed files with 10 additions and 0 deletions
10
bin/qemush
10
bin/qemush
|
@ -31,6 +31,8 @@ ${name}: usage:
|
||||||
${name} diskls - list available disk images
|
${name} diskls - list available disk images
|
||||||
${name} diskadd <disk name> <size> - create a disk image
|
${name} diskadd <disk name> <size> - create a disk image
|
||||||
${name} diskrm <disk name> - delete disk image
|
${name} diskrm <disk name> - delete disk image
|
||||||
|
${name} add <VM name> <template> - add launch script based on template
|
||||||
|
${name} rm <VM name> - delete launch script
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -77,6 +79,14 @@ public_diskls() {
|
||||||
ls --color=auto images
|
ls --color=auto images
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public_add() {
|
||||||
|
ln -vs "$2" "bin/${1}"
|
||||||
|
}
|
||||||
|
|
||||||
|
public_rm() {
|
||||||
|
unlink "bin/${1}"
|
||||||
|
}
|
||||||
|
|
||||||
function="$1"
|
function="$1"
|
||||||
shift
|
shift
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue