mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 16:08:07 +02:00
de0bb1d6c4
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7173 3c298f89-4303-0410-b956-a3cf2f4a3e73
21 lines
320 B
Bash
Executable File
21 lines
320 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
|
|
|
|
set_state preinit
|
|
|
|
mount_root ${FAILSAFE:+failsafe}
|
|
|
|
eval ${FAILSAFE:+failsafe}
|
|
lock -w /tmp/.failsafe
|
|
|
|
exec /sbin/init
|