From 11a8112c5ead27fe651b14a30cb6ad5d473fac39 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 9 Jan 2014 15:56:21 +0100 Subject: [PATCH] need to compute ifname as eth0 is no longer taken for granted --- vbuild-init-lxc.sh | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/vbuild-init-lxc.sh b/vbuild-init-lxc.sh index 11916b7c..96f3d8cd 100755 --- a/vbuild-init-lxc.sh +++ b/vbuild-init-lxc.sh @@ -14,12 +14,37 @@ PATH=$(dirname $0):$PATH export PATH DEFAULT_FCDISTRO=f16 DEFAULT_PLDISTRO=planetlab DEFAULT_PERSONALITY=linux64 -DEFAULT_IFNAME=eth0 COMMAND_VBUILD="vbuild-init-lxc.sh" COMMAND_MYPLC="vtest-init-lxc.sh" libvirt_version="1.0.4" + +## stolen from tests/system/template-qemu/qemu-bridge-init +#################### compute INTERFACE_LAN +# use /proc/net/dev instead of a hard-wired list +function gather_interfaces () { + python <