summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-06-13 15:15:55 +0200
committerHarald Hoyer <harald@redhat.com>2013-06-13 15:15:55 +0200
commita94cd56d6f19c06dcbb435e66ad329e1eef598de (patch)
treed2dc8318beec60fc95cd3a581b8899cd60f7788e
parentb819f519cb9d622632cea8aa64fa6d9cac1c402b (diff)
downloaddracut-a94cd56d6f19c06dcbb435e66ad329e1eef598de.tar.gz
dracut-a94cd56d6f19c06dcbb435e66ad329e1eef598de.tar.bz2
dracut-a94cd56d6f19c06dcbb435e66ad329e1eef598de.zip
test/TEST-50-MULTINIC: fix interface test
-rwxr-xr-xtest/TEST-50-MULTINIC/client-init.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/TEST-50-MULTINIC/client-init.sh b/test/TEST-50-MULTINIC/client-init.sh
index b7c19a05..3bf179de 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