aboutsummaryrefslogtreecommitdiff
path: root/run
diff options
context:
space:
mode:
authorMarvin Borner2020-09-23 19:24:55 +0200
committerMarvin Borner2020-09-23 19:24:55 +0200
commit0e31b099484eb356184841f245d7d0a47fef0b4d (patch)
treeb31d5513fee35b9dcfddeb9622d90a32ba85360d /run
parenta27a72cd6053bd1628b1c504bb0a9484f590fc7e (diff)
Fixed brctl conditional
Diffstat (limited to 'run')
-rwxr-xr-xrun5
1 files changed, 4 insertions, 1 deletions
diff --git a/run b/run
index 16475b6..352d939 100755
--- a/run
+++ b/run
@@ -120,7 +120,10 @@ make_build() {
}
make_test() {
- brctl show br0 >/dev/null || sudo brctl addbr br0
+ if [ "$mode" = "net" ]; then
+ brctl show br0 >/dev/null || sudo brctl addbr br0
+ fi
+
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