projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[package] libuuid needs to be compiled with fPIC/pic.
[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
d5f02ed
..
688fca0
100755
(executable)
--- a/
package/base-files/files/etc/preinit
+++ b/
package/base-files/files/etc/preinit
@@
-8,6
+8,7
@@
failsafe_ip() {
}
failsafe() {
}
failsafe() {
+ set_state failsafe
[ -n "$ifname" ] && grep "$ifname" /proc/net/dev >/dev/null && {
failsafe_ip
netmsg 192.168.1.255 "Entering Failsafe!"
[ -n "$ifname" ] && grep "$ifname" /proc/net/dev >/dev/null && {
failsafe_ip
netmsg 192.168.1.255 "Entering Failsafe!"
@@
-66,11
+67,15
@@
dd if=/dev/console of=/dev/null bs=1 count=0 >/dev/null 2>/dev/null && {
exec <$M0 >$M1 2>&0
echo "- preinit -"
exec <$M0 >$M1 2>&0
echo "- preinit -"
+set_state preinit
echo "Press CTRL-C for failsafe"
trap 'FAILSAFE=true' INT
trap 'FAILSAFE=true' USR1
echo "Press CTRL-C for failsafe"
trap 'FAILSAFE=true' INT
trap 'FAILSAFE=true' USR1
-[ -e /etc/preinit.arch ] && . /etc/preinit.arch
-set_state preinit
+if [ -e /etc/preinit.arch ]; then
+ . /etc/preinit.arch
+else
+ sleep 2
+fi
echo "$HOTPLUG" > /proc/sys/kernel/hotplug
export FAILSAFE
eval ${FAILSAFE:+failsafe}
echo "$HOTPLUG" > /proc/sys/kernel/hotplug
export FAILSAFE
eval ${FAILSAFE:+failsafe}
@@
-88,6
+93,6
@@
if [ -z "$INITRAMFS" ]; then
}
echo "- init -"
}
echo "- init -"
-
+
exec /sbin/init
fi
exec /sbin/init
fi
This page took
0.021754 seconds
and
4
git commands to generate.