From: Mike Baker Date: Thu, 7 Aug 2008 07:17:03 +0000 (+0000) Subject: allow ctrl-c to trigger preinit X-Git-Tag: reboot~25844 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1139608784d8d1116a9fb03521e7c74bcf534511;p=oweals%2Fopenwrt.git allow ctrl-c to trigger preinit SVN-Revision: 12231 --- diff --git a/package/base-files/files/etc/preinit b/package/base-files/files/etc/preinit index 24c2b6d282..8c30fd8da1 100755 --- a/package/base-files/files/etc/preinit +++ b/package/base-files/files/etc/preinit @@ -62,6 +62,8 @@ dd if=/dev/console of=/dev/null bs=1 count=0 >/dev/null 2>/dev/null && { exec <$M0 >$M1 2>&0 echo "- preinit -" +echo "Press CTRL-C for failsafe" +trap 'FAILSAFE=true' INT trap 'FAILSAFE=true' USR1 [ -e /etc/preinit.arch ] && . /etc/preinit.arch set_state preinit