2 exec >/dev
/console
2>&1
4 export PATH
=/sbin
:/bin
:/usr
/sbin
:/usr
/bin
5 strstr
() { [ "${1##*"$2"*}" != "$1" ]; }
6 strglobin
() { [ -n "$1" -a -z "${1##*$2*}" ]; }
7 CMDLINE
=$
(while read line ||
[ -n "$line" ]; do echo $line;done < /proc
/cmdline
)
9 export PS1
='initramfs-test:\w\$ '
11 echo "made it to the rootfs! Powering down."
12 for i
in /run
/initramfs
/net.
*.did-setup
; do
13 [ -f "$i" ] ||
continue
14 strglobin
"$i" ":*:*:*:*:" && continue
16 IFACES
+="${i##*/net.} "
23 strstr
"$CMDLINE" "rd.shell" && sh
-i