3 echo "T2 SDE early (initrd) userspace (C) 2005 - 2017 Rene Rebe, ExactCODE"
5 PATH
=/sbin
:/bin
:/usr
/bin
:/usr
/sbin
7 echo "Mounting /dev, /proc and /sys ..."
8 mount
-t devtmpfs
-o mode
=755 none
/dev
9 mount
-t proc none
/proc
10 mount
-t sysfs none
/sys
11 ln -s /proc
/self
/fd
/dev
/fd
13 echo "Populating u/dev ..."
19 [ -e /dev
/console
] || mknod
/dev
/console c
5 1
20 [ -e /dev
/tty
] || mknod
/dev
/tty c
5 0
22 init
="init= `cat /proc/cmdline`" ; init
=${init##*init=} ; init
=${init%% *}
23 # TODO: later on search other places if we want 100% backward compat.
24 [ "$init" ] || init
=/sbin
/init
30 echo "No init found, giving up. Debug shell:"