2005-02-06 00:52:16 +00:00
|
|
|
#!/bin/sh
|
2006-06-27 00:36:13 +00:00
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
|
2005-07-20 19:58:40 +00:00
|
|
|
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
|
2005-02-06 00:52:16 +00:00
|
|
|
mount none /proc -t proc
|
2005-07-15 16:49:11 +00:00
|
|
|
|
2006-04-05 02:09:22 +00:00
|
|
|
[ -f /etc/preinit.arch ] && . /etc/preinit.arch
|
|
|
|
[ -z "$FAILSAFE" ] || {
|
|
|
|
echo /bin/true > /proc/sys/kernel/hotplug
|
|
|
|
telnetd -l /bin/login <> /dev/null 2>&1
|
2006-01-04 23:50:17 +00:00
|
|
|
}
|
2006-04-05 02:09:22 +00:00
|
|
|
mount_root ${FAILSAFE:+failsafe}
|
2005-02-06 00:52:16 +00:00
|
|
|
exec /sbin/init
|