mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
preinit: fix failsafe mode through ctrl+c on devices that do not provide a preinit.arch file
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17470 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
9b93d8e311
commit
aaf8904d5a
@ -69,7 +69,11 @@ echo "- preinit -"
|
||||
echo "Press CTRL-C for failsafe"
|
||||
trap 'FAILSAFE=true' INT
|
||||
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
|
||||
echo "$HOTPLUG" > /proc/sys/kernel/hotplug
|
||||
export FAILSAFE
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user