summaryrefslogtreecommitdiff
path: root/package/base-files
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2008-08-07 07:17:03 +0000
committerMike Baker <mbm@openwrt.org>2008-08-07 07:17:03 +0000
commit1139608784d8d1116a9fb03521e7c74bcf534511 (patch)
tree5ff505a9df68b33f82f4456c679e071ed316cb55 /package/base-files
parente848e7654bd0037f4118879d6a698b0ce4816c11 (diff)
downloadmtk-20170518-1139608784d8d1116a9fb03521e7c74bcf534511.zip
mtk-20170518-1139608784d8d1116a9fb03521e7c74bcf534511.tar.gz
mtk-20170518-1139608784d8d1116a9fb03521e7c74bcf534511.tar.bz2
allow ctrl-c to trigger preinit
SVN-Revision: 12231
Diffstat (limited to 'package/base-files')
-rwxr-xr-xpackage/base-files/files/etc/preinit2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/base-files/files/etc/preinit b/package/base-files/files/etc/preinit
index 24c2b6d..8c30fd8 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