]> git.ipfire.org Git - thirdparty/dracut.git/blame - test/TEST-60-BONDBRIDGEVLANIFCFG/client-init.sh
test/TEST-60-IFCFG/test.sh: fixed qemu hubport netifs
[thirdparty/dracut.git] / test / TEST-60-BONDBRIDGEVLANIFCFG / client-init.sh
CommitLineData
70787ab6
LR
1#!/bin/sh
2exec >/dev/console 2>&1
3export PATH=/sbin:/bin:/usr/sbin:/usr/bin
4strstr() { [ "${1#*$2*}" != "$1" ]; }
5CMDLINE=$(while read line; do echo $line;done < /proc/cmdline)
6export TERM=linux
7export PS1='initramfs-test:\w\$ '
8stty sane
9echo "made it to the rootfs! Powering down."
10
11(
12 echo OK
13 ip -o -4 address show scope global | while read n if rest; do echo $if;done | sort
14 for i in /run/initramfs/state/etc/sysconfig/network-scripts/ifcfg-*; do
15 echo $i
16 grep -v 'UUID=' $i
17 done
18 echo EOF
19) > /dev/sda
20
21strstr "$CMDLINE" "rd.shell" && sh -i
22poweroff -f