X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/54af0ced738b5a5819ff54ef212e8a549a9e545c..cba027e9e27c2c70ed117265e177239007ad4683:/package/base-files/files/etc/preinit diff --git a/package/base-files/files/etc/preinit b/package/base-files/files/etc/preinit index 524b4252a..8c30fd8da 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 @@ -82,6 +84,5 @@ if [ -z "$INITRAMFS" ]; then echo "- init -" - killall hotplug2 exec /sbin/init fi