From ed871f4949bf6d15afa3f43b17bbc188be46e6fe Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Thu, 7 Apr 2011 18:47:46 +0400 Subject: [PATCH] ikonik_sim --- bash/ikonik_sim/sim.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 bash/ikonik_sim/sim.sh diff --git a/bash/ikonik_sim/sim.sh b/bash/ikonik_sim/sim.sh new file mode 100755 index 0000000..e5196e2 --- /dev/null +++ b/bash/ikonik_sim/sim.sh @@ -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)&