kernel build cleanup
[openwrt/openwrt.git] / target / linux / ar7-2.4 / base-files / 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