1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-28 08:58:28 +02:00
openwrt-xburst/package/base-files/files/etc/preinit
florian 663c75c6b2 Fix set_state preinit stuff
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7200 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-05-13 10:17:57 +00:00

24 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