finally move buildroot-ng to trunk
[openwrt/staging/dedeckeh.git] / package / base-files / brcm-2.6 / etc / preinit
1 #!/bin/sh
2 # Copyright (C) 2006 OpenWrt.org
3
4 export PATH=/bin:/sbin:/usr/bin:/usr/sbin
5 mount none /proc -t proc
6
7 [ -f /etc/preinit.arch ] && . /etc/preinit.arch
8 [ -z "$FAILSAFE" ] || {
9 echo /bin/true > /proc/sys/kernel/hotplug
10 telnetd -l /bin/login <> /dev/null 2>&1
11 }
12 mount_root ${FAILSAFE:+failsafe}
13 exec /sbin/init