1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-06 15:19:40 +02:00
openwrt-xburst/package/base-files/files/etc/preinit

21 lines
320 B
Plaintext
Raw Normal View History

#!/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