2 exec >/dev
/console
2>&1
3 export PATH
=/sbin
:/bin
:/usr
/sbin
:/usr
/bin
4 strstr
() { [ "${1#*$2*}" != "$1" ]; }
5 CMDLINE
=$
(while read line
; do echo $line;done < /proc
/cmdline
)
7 export PS1
='initramfs-test:\w\$ '
9 echo "made it to the rootfs! Powering down."
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
21 strstr
"$CMDLINE" "rd.shell" && sh
-i