aboutsummaryrefslogtreecommitdiff
path: root/run
diff options
context:
space:
mode:
Diffstat (limited to 'run')
-rwxr-xr-xrun2
1 files changed, 1 insertions, 1 deletions
diff --git a/run b/run
index 352d939..8e8f86d 100755
--- a/run
+++ b/run
@@ -12,7 +12,7 @@ no_ask="${2}"
qemu_with_flags() {
if [ -z "$network" ]; then network="rtl8139"; fi
if [ "$network" != "false" ] && [ "$mode" = "net" ]; then
- qemu-system-i386 -cpu max -no-reboot -vga std -rtc base=localtime -m 256M -smp 4 -net nic,model=${network},macaddr=42:42:42:42:42:42 -net bridge,br=br0 "$@"
+ qemu-system-i386 -cpu max -no-reboot -vga std -rtc base=localtime -m 256M -smp 4 -netdev tap,helper=/usr/lib/qemu/qemu-bridge-helper,id=melvix_net -device $network,netdev=melvix_net,id=melvix_nic "$@"
else
qemu-system-i386 -cpu max -no-reboot -vga std -rtc base=localtime -m 256M -smp 4 "$@"
fi