summaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
authorsinanmohd <sinan@firemail.cc>2023-03-23 09:27:20 +0530
committersinanmohd <sinan@firemail.cc>2023-03-23 09:27:20 +0530
commit1574bc414fe4855b7647d6c557976c604b57d979 (patch)
treecfa99ba891e3417abae51545e8712a6a33a06bbb /.local
parent9fecc3a6ee80c9ea2758947e72894b2ece54d894 (diff)
livevm: shorter livem <cdrom> cmd
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/livevm6
1 files changed, 6 insertions, 0 deletions
diff --git a/.local/bin/livevm b/.local/bin/livevm
index 79f7ed6..e83f5c6 100755
--- a/.local/bin/livevm
+++ b/.local/bin/livevm
@@ -12,6 +12,12 @@ cmd="qemu-system-x86_64 -boot menu=on -enable-kvm -device intel-hda -device hda-
[ ! -f "$storage" ] &&
qemu-img create -f qcow2 "$storage" 30G
+if [ "$#" -eq 1 ] && [ -f "$1" ]
+then
+ cmd="${cmd} -cdrom ${1}"
+ shift
+fi
+
while getopts "wehc:d:" f
do
case "$f" in