aboutsummaryrefslogtreecommitdiff
path: root/run
diff options
context:
space:
mode:
authorMarvin Borner2020-09-21 19:14:31 +0200
committerMarvin Borner2020-09-21 19:14:31 +0200
commitca7bb843e97afe6c7bfbce1837654c58f71368b6 (patch)
tree41e6daa7812e270da22b25693d27670d731eaa95 /run
parente3b45a6c47868b3002dacbfdedef957b800f308e (diff)
Networking
Diffstat (limited to 'run')
-rwxr-xr-xrun3
1 files changed, 2 insertions, 1 deletions
diff --git a/run b/run
index aee1493..eae3422 100755
--- a/run
+++ b/run
@@ -11,7 +11,7 @@ network="rtl8139"
# TODO: Support q35 chipset ('-machine q35') - loops in ide_wait
qemu_with_flags() {
- SDL_VIDEO_X11_DGAMOUSE=0 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 user "$@"
+ SDL_VIDEO_X11_DGAMOUSE=0 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 "$@"
}
make_cross() {
@@ -117,6 +117,7 @@ make_build() {
}
make_test() {
+ brctl show br0 >/dev/null || sudo brctl addbr br0
if [ "$mode" = "test" ]; then
qemu_with_flags -serial file:test.log -nographic -drive file=build/disk.img,format=raw,index=1,media=disk &
sleep 2