projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bugfix
[openwrt.git]
/
package
/
base-files
/
files
/
etc
/
preinit
diff --git
a/package/base-files/files/etc/preinit
b/package/base-files/files/etc/preinit
index
588db8e
..
b23508f
100755
(executable)
--- a/
package/base-files/files/etc/preinit
+++ b/
package/base-files/files/etc/preinit
@@
-1,7
+1,20
@@
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
-export HOME=/tmp
+. /etc/diag.sh
+
+failsafe() {
+ lock /tmp/.failsafe
+ ash --login
+}
+
[ -e /etc/preinit.arch ] && . /etc/preinit.arch
[ -e /etc/preinit.arch ] && . /etc/preinit.arch
+
+set_state preinit
+
mount_root ${FAILSAFE:+failsafe}
mount_root ${FAILSAFE:+failsafe}
+
+eval ${FAILSAFE:+failsafe}
+lock -w /tmp/.failsafe
+
exec /sbin/init
exec /sbin/init
This page took
0.029646 seconds
and
4
git commands to generate.