From 8060daacd7e8d7040f068c2fc691e7d664c77f8f Mon Sep 17 00:00:00 2001 From: nbd Date: Wed, 2 Sep 2009 15:14:53 +0000 Subject: [PATCH] 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 --- package/base-files/files/etc/preinit | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package/base-files/files/etc/preinit b/package/base-files/files/etc/preinit index d5f02ed89..cf042b47b 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