2007-03-02 03:23:36 +02:00
|
|
|
#!/bin/sh
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
|
2007-05-10 17:37:47 +03:00
|
|
|
. /etc/diag.sh
|
|
|
|
|
|
|
|
failsafe() {
|
|
|
|
lock /tmp/.failsafe
|
|
|
|
ash --login
|
|
|
|
}
|
|
|
|
|
2007-05-14 08:37:24 +03:00
|
|
|
mount none /proc -t proc
|
|
|
|
mount none /sys -t sysfs
|
2007-05-10 17:37:47 +03:00
|
|
|
|
2007-05-14 08:37:24 +03:00
|
|
|
[ -e /etc/preinit.arch ] && . /etc/preinit.arch
|
2007-05-13 13:17:57 +03:00
|
|
|
|
2007-05-10 17:37:47 +03:00
|
|
|
set_state preinit
|
|
|
|
|
2007-03-04 00:32:13 +02:00
|
|
|
mount_root ${FAILSAFE:+failsafe}
|
2007-05-10 17:37:47 +03:00
|
|
|
|
|
|
|
eval ${FAILSAFE:+failsafe}
|
|
|
|
lock -w /tmp/.failsafe
|
|
|
|
|
2007-03-02 03:23:36 +02:00
|
|
|
exec /sbin/init
|