projects
/
openwrt
/
staging
/
lynxis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0bdbdc
)
preinit: fix failsafe mode through ctrl+c on devices that do not provide a preinit...
author
Felix Fietkau
<nbd@openwrt.org>
Wed, 2 Sep 2009 15:14:53 +0000
(15:14 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Wed, 2 Sep 2009 15:14:53 +0000
(15:14 +0000)
SVN-Revision: 17470
package/base-files/files/etc/preinit
patch
|
blob
|
history
diff --git
a/package/base-files/files/etc/preinit
b/package/base-files/files/etc/preinit
index d5f02ed89138d9e07f0c5afde466a46a55ae97ab..cf042b47bf1e85b6a09aa6694ccc14c0706c2b9b 100755
(executable)
--- a/
package/base-files/files/etc/preinit
+++ b/
package/base-files/files/etc/preinit
@@
-69,7
+69,11
@@
echo "- preinit -"
echo "Press CTRL-C for failsafe"
trap 'FAILSAFE=true' INT
trap 'FAILSAFE=true' USR1
-[ -e /etc/preinit.arch ] && . /etc/preinit.arch
+if [ -e /etc/preinit.arch ]; then
+ . /etc/preinit.arch
+else
+ sleep 2
+fi
set_state preinit
echo "$HOTPLUG" > /proc/sys/kernel/hotplug
export FAILSAFE