diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-09-02 15:14:53 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-09-02 15:14:53 +0000 |
commit | aaf8904d5a6328f8c2f1a567c5edf7a41347fbdf (patch) | |
tree | ad7c2bd78d11f8af55d6ad493078146ad2a4289d /package | |
parent | 9b93d8e311e6b72a88607aa8a51ea8c0219b6f6a (diff) | |
download | upstream-aaf8904d5a6328f8c2f1a567c5edf7a41347fbdf.tar.gz upstream-aaf8904d5a6328f8c2f1a567c5edf7a41347fbdf.tar.bz2 upstream-aaf8904d5a6328f8c2f1a567c5edf7a41347fbdf.zip |
preinit: fix failsafe mode through ctrl+c on devices that do not provide a preinit.arch file
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17470 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rwxr-xr-x | package/base-files/files/etc/preinit | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/package/base-files/files/etc/preinit b/package/base-files/files/etc/preinit index d5f02ed891..cf042b47bf 100755 --- 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 |