mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-26 11:11:46 +00:00
preinit: fix failsafe mode through ctrl+c on devices that do not provide a preinit.arch file
SVN-Revision: 17470
This commit is contained in:
parent
d0bdbdc64f
commit
6155fdf5d3
@ -69,7 +69,11 @@ echo "- preinit -"
|
|||||||
echo "Press CTRL-C for failsafe"
|
echo "Press CTRL-C for failsafe"
|
||||||
trap 'FAILSAFE=true' INT
|
trap 'FAILSAFE=true' INT
|
||||||
trap 'FAILSAFE=true' USR1
|
trap 'FAILSAFE=true' USR1
|
||||||
[ -e /etc/preinit.arch ] && . /etc/preinit.arch
|
if [ -e /etc/preinit.arch ]; then
|
||||||
|
. /etc/preinit.arch
|
||||||
|
else
|
||||||
|
sleep 2
|
||||||
|
fi
|
||||||
set_state preinit
|
set_state preinit
|
||||||
echo "$HOTPLUG" > /proc/sys/kernel/hotplug
|
echo "$HOTPLUG" > /proc/sys/kernel/hotplug
|
||||||
export FAILSAFE
|
export FAILSAFE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user