Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 36896
pi_failsafe_net_message=true
preinit_net_echo "Please press button now to enter failsafe"
pi_failsafe_net_message=false
- fs_wait_for_key f 'to enter failsafe mode' $fs_failsafe_wait_timeout && FAILSAFE=true && export FAILSAFE
- [ -f "/tmp/failsafe_button" ] && FAILSAFE=true && export FAILSAFE && rm /tmp/failsafe_button
+ fs_wait_for_key f 'to enter failsafe mode' $fs_failsafe_wait_timeout && FAILSAFE=true
+ [ -f "/tmp/failsafe_button" ] && FAILSAFE=true
+ [ "$FAILSAFE" = "true" ] && export FAILSAFE && touch /tmp/failsafe
fi
}
[ "if",
[ "and",
[ "eq", "SUBSYSTEM", "button" ],
- [ "eq", "BUTTON", "reset" ],
],
[ "exec", "/etc/rc.button/failsafe" ]
],