1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-06 13:38:06 +02:00
openwrt-xburst/package/base-files/files/etc/preinit
mbm de0bb1d6c4 unified preinit environment
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7173 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-05-10 14:37:47 +00:00

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