]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
test/TEST-50-MULTINIC: fix interface test
authorHarald Hoyer <harald@redhat.com>
Thu, 13 Jun 2013 13:15:55 +0000 (15:15 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 13 Jun 2013 13:15:55 +0000 (15:15 +0200)
test/TEST-50-MULTINIC/client-init.sh

index b7c19a05ec7c16de3674f58be35db15c0f6fa223..3bf179de1bf654b88a37bea00b7f39e68632f505 100755 (executable)
@@ -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