projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixup iop32x, needs testing, but should work now
[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
c60a0f8
..
d1a6ffd
100755
(executable)
--- a/
package/base-files/files/etc/preinit
+++ b/
package/base-files/files/etc/preinit
@@
-1,6
+1,23
@@
#!/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
+. /etc/diag.sh
+
+failsafe() {
+ lock /tmp/.failsafe
+ ash --login
+}
+
+mount none /proc -t proc
+mount none /sys -t sysfs
+
[ -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.02122 seconds
and
4
git commands to generate.