From: Harald Hoyer Date: Thu, 13 Jun 2013 13:15:55 +0000 (+0200) Subject: test/TEST-50-MULTINIC: fix interface test X-Git-Tag: 029~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a94cd56d6f19c06dcbb435e66ad329e1eef598de;p=thirdparty%2Fdracut.git test/TEST-50-MULTINIC: fix interface test --- diff --git a/test/TEST-50-MULTINIC/client-init.sh b/test/TEST-50-MULTINIC/client-init.sh index b7c19a05e..3bf179de1 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