allow ctrl-c to trigger preinit
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12231 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
dd4784db1f
commit
7f8329b861
|
@ -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
|
exec <$M0 >$M1 2>&0
|
||||||
|
|
||||||
echo "- preinit -"
|
echo "- preinit -"
|
||||||
|
echo "Press CTRL-C for failsafe"
|
||||||
|
trap 'FAILSAFE=true' INT
|
||||||
trap 'FAILSAFE=true' USR1
|
trap 'FAILSAFE=true' USR1
|
||||||
[ -e /etc/preinit.arch ] && . /etc/preinit.arch
|
[ -e /etc/preinit.arch ] && . /etc/preinit.arch
|
||||||
set_state preinit
|
set_state preinit
|
||||||
|
|
Loading…
Reference in New Issue