1
0
Fork 0
forked from ahurac/dotfiles

Ajout : fonctions pour ajouter ou supprimer des VM dans qemush

This commit is contained in:
Hippolyte Chauvin 2023-10-15 13:50:03 +02:00
parent c115dbd144
commit 3497bd31e9

View file

@ -31,6 +31,8 @@ ${name}: usage:
${name} diskls - list available disk images
${name} diskadd <disk name> <size> - create a 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
}
@ -77,6 +79,14 @@ public_diskls() {
ls --color=auto images
}
public_add() {
ln -vs "$2" "bin/${1}"
}
public_rm() {
unlink "bin/${1}"
}
function="$1"
shift