5cbadc89e7
SVN-Revision: 7200
23 lines
371 B
Bash
Executable file
23 lines
371 B
Bash
Executable file
#!/bin/sh
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
|
|
. /etc/diag.sh
|
|
|
|
failsafe() {
|
|
lock /tmp/.failsafe
|
|
ash --login
|
|
}
|
|
|
|
[ -e /etc/preinit.arch ] && . /etc/preinit.arch
|
|
|
|
mount -t proc none /proc
|
|
mount -t sysfs none /sys
|
|
|
|
set_state preinit
|
|
|
|
mount_root ${FAILSAFE:+failsafe}
|
|
|
|
eval ${FAILSAFE:+failsafe}
|
|
lock -w /tmp/.failsafe
|
|
|
|
exec /sbin/init
|