allow ctrl-c to trigger preinit
[openwrt/svn-archive/archive.git] / package / base-files / files / etc / preinit
index 524b4252a2be19f82ead54f9442cd456a6bdb808..8c30fd8da16432eb8e20f65b6638e7ac0783198a 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
@@ -82,6 +84,5 @@ if [ -z "$INITRAMFS" ]; then
 
        echo "- init -"
        
-       killall hotplug2
        exec /sbin/init
 fi