From 0e31b099484eb356184841f245d7d0a47fef0b4d Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 23 Sep 2020 19:24:55 +0200 Subject: Fixed brctl conditional --- run | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'run') 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 -- cgit v1.2.3