aboutsummaryrefslogtreecommitdiffstats
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
commit7f8329b8610f245fc0daf66df8e33441ad9b0365 (patch)
tree7491c34d927fcbe984b830f1ef73c34abf6745f4 /package/base-files
parentdd4784db1f2c1256ceb855c48d8c0cffcff77edf (diff)
downloadupstream-7f8329b8610f245fc0daf66df8e33441ad9b0365.tar.gz
upstream-7f8329b8610f245fc0daf66df8e33441ad9b0365.tar.bz2
upstream-7f8329b8610f245fc0daf66df8e33441ad9b0365.zip
allow ctrl-c to trigger preinit
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12231 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 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