allow ctrl-c to trigger preinit
authormbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 7 Aug 2008 07:17:03 +0000 (07:17 +0000)
committermbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 7 Aug 2008 07:17:03 +0000 (07:17 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12231 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/base-files/files/etc/preinit

index 24c2b6d..8c30fd8 100755 (executable)
@@ -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
This page took 0.024193 seconds and 4 git commands to generate.