clean up handling of the root filesystem mount - remove broadcom specific junk from...
[openwrt/svn-archive/archive.git] / openwrt / package / base-files / brcm-2.6 / etc / preinit
1 #!/bin/sh
2 export PATH=/bin:/sbin:/usr/bin:/usr/sbin
3 mount none /proc -t proc
4
5 [ -f /etc/preinit.arch ] && . /etc/preinit.arch
6 [ -z "$FAILSAFE" ] || {
7 echo /bin/true > /proc/sys/kernel/hotplug
8 telnetd -l /bin/login <> /dev/null 2>&1
9 }
10 mount_root ${FAILSAFE:+failsafe}
11 exec /sbin/init