diff options
author | Marvin Borner | 2020-09-23 19:24:55 +0200 |
---|---|---|
committer | Marvin Borner | 2020-09-23 19:24:55 +0200 |
commit | 0e31b099484eb356184841f245d7d0a47fef0b4d (patch) | |
tree | b31d5513fee35b9dcfddeb9622d90a32ba85360d /run | |
parent | a27a72cd6053bd1628b1c504bb0a9484f590fc7e (diff) |
Fixed brctl conditional
Diffstat (limited to 'run')
-rwxr-xr-x | run | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |