X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=system%2Ftemplate-qemu%2Fqemu-bridge-init;h=d182557a5812dba56a097f4bb3121221d8462ee8;hb=7ab545cde7518604b8bd70275da16dcfe855ac4a;hp=1749d6f38b6ba2c6599d4e34e6c3f6c3b92ffcd2;hpb=4641638de7866e46f8b554b0ede08680e3b84fe7;p=tests.git diff --git a/system/template-qemu/qemu-bridge-init b/system/template-qemu/qemu-bridge-init index 1749d6f..d182557 100755 --- a/system/template-qemu/qemu-bridge-init +++ b/system/template-qemu/qemu-bridge-init @@ -17,19 +17,32 @@ set -x # constant INTERFACE_BRIDGE=br0 -# Default Value for INTERFACE_LAN -# let's try to figure out the interface to use - try these in order -IFNAMES="eth0 eth1 eth2 eth3" +#################### compute INTERFACE_LAN +# use /proc/net/dev instead of a hard-wired list +function gather_interfaces () { + python <