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 | 6155fdf5d325dd97d6efd4d95e140e0d1265ef6a (patch) | |
tree | 0f79e079e44fa372ad5af5328d453528cffac77e /package/base-files/files/etc/preinit | |
parent | d0bdbdc64f9b75f533da60e664b1855c6b606cb7 (diff) | |
download | mtk-20170518-6155fdf5d325dd97d6efd4d95e140e0d1265ef6a.zip mtk-20170518-6155fdf5d325dd97d6efd4d95e140e0d1265ef6a.tar.gz mtk-20170518-6155fdf5d325dd97d6efd4d95e140e0d1265ef6a.tar.bz2 |
preinit: fix failsafe mode through ctrl+c on devices that do not provide a preinit.arch file
SVN-Revision: 17470
Diffstat (limited to 'package/base-files/files/etc/preinit')
-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 d5f02ed..cf042b4 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 |