#!/bin/rc # 2016-03-13T22:26:55-0400 switch($1){ case -b exec qemu-system-x86_64 -no-fd-bootchk -hda $2 -boot c case -c qemu-img create -f qcow2 $2 $3 case -i exec qemu-system-x86_64 -no-fd-bootchk -hda $2 -cdrom $3 -boot d case -t # exec sudo sh -c "sudo -C 4 -u $USER qemu -m 1024 \ # -net nic,vlan=0,model=rtl8139,macaddr=52:54:00:12:33.36 \ # -net tap,vlan=0,fd=3,script=no -no-fd-bootchk \ # -hda 9front.qcow2.img 3<>/dev/tun0" case * #echo usage: `{basename $0} [-bcit] [...] >[1=2] #exit usage 9q -b $HOME/9front.qcow }