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