ikonik_sim

This commit is contained in:
Kolan Sh 2011-04-07 18:47:46 +04:00
parent 2e507e65b7
commit ed871f4949
1 changed files with 10 additions and 0 deletions

10
bash/ikonik_sim/sim.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
if [[ "`ps aux|grep vde_switch|head -n-1`" == "" ]]; then
vde_switch -daemon
fi
if [[ "`ps aux|grep vde_pcap|grep root`" == "" ]]; then
(sudo /usr/bin/vde_pcapplug eth0 &>/dev/null)&
fi
cd ~/vm/qemu
(qemu-system-x86_64 -m 128 -usb -usbdevice host:0000:5678 -usbdevice host:067b:2303 -net nic,macaddr=52:54:00:12:34:57 -net vde xp0 &>/dev/null)&