From a94cd56d6f19c06dcbb435e66ad329e1eef598de Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Thu, 13 Jun 2013 15:15:55 +0200 Subject: [PATCH] test/TEST-50-MULTINIC: fix interface test --- test/TEST-50-MULTINIC/client-init.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/TEST-50-MULTINIC/client-init.sh b/test/TEST-50-MULTINIC/client-init.sh index b7c19a0..3bf179d 100755 --- a/test/TEST-50-MULTINIC/client-init.sh +++ b/test/TEST-50-MULTINIC/client-init.sh @@ -8,7 +8,11 @@ export TERM=linux export PS1='initramfs-test:\w\$ ' stty sane echo "made it to the rootfs! Powering down." -[ -e /dev/.initramfs/net.ifaces ] && echo OK $(cat /dev/.initramfs/net.ifaces) > /dev/sda -[ -e /run/initramfs/net.ifaces ] && echo OK $(cat /run/initramfs/net.ifaces) > /dev/sda +for i in /run/initramfs/net.*.did-setup; do + i=${i%.did-setup} + IFACES+="${i##*/net.} " +done +echo "OK $IFACES" > /dev/sda + strstr "$CMDLINE" "rd.shell" && sh -i poweroff -f -- 2.7.4