Browse Source

test/TEST-50-MULTINIC: fix interface test

master
Harald Hoyer 12 years ago
parent
commit
a94cd56d6f
  1. 8
      test/TEST-50-MULTINIC/client-init.sh

8
test/TEST-50-MULTINIC/client-init.sh

@ -8,7 +8,11 @@ export TERM=linux @@ -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

Loading…
Cancel
Save